1 Commits
0.0.1 ... 0.0.2

Author SHA1 Message Date
6fbc82d89e use dedicated user
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-11-06 17:38:50 +01:00
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,11 @@ COPY src/requirements.txt .
COPY src/main.py .
COPY src/message_processor.py .
RUN pip install --no-cache-dir -r requirements.txt
RUN \
addgroup -S appgroup && \
adduser -S appuser -G appgroup && \
apk add --no-cache bash && \
pip install --no-cache-dir -r requirements.txt
ENV MQTT_BROKER=""
@ -21,5 +25,7 @@ ENV DEFAULT_HIGH_TEMPERATURE=""
ENV MAINTENANCE_TEMPERATURE=""
ENV BOXES=""
USER appuser
CMD ["python", "main.py"]

0
deployment/deploy.sh Normal file → Executable file
View File