All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
24 lines
573 B
Docker
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"]
|
|
|