Files
pv-controller/Dockerfile
Wolfgang Hottgenroth 190021bb84
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
test ci 5
2025-12-05 13:18:21 +01:00

24 lines
573 B
Docker

FROM python:3.14-alpine
LABEL Maintainer="Wolfgang Hottgenroth wolfgang.hottgenroth@icloud.com"
LABEL ImageName="registry.hottis.de/dockerized/pv-controller"
LABEL HubImageName="wn/pv-controller"
ARG APP_DIR="/opt/app"
ARG APP_USER="app"
ENV CFG_FILE ""
WORKDIR ${APP_DIR}
COPY ./src/pv_controller/requirements.txt requirements.txt
COPY ./src/pv_controller/*.py ${APP_DIR}/
RUN addgroup -g 10001 -S ${APP_USER} && \
adduser -u 10001 -S ${APP_USER} -G ${APP_USER} && \
pip install --no-cache-dir -r requirements.txt
USER ${APP_USER}
CMD ["python", "pvc.py"]