modified: .gitignore

new file:   srcdev/Dockerfile
This commit is contained in:
TC
2023-11-02 22:53:19 +01:00
parent 61ae04972d
commit 9496641437
2 changed files with 21 additions and 1 deletions

20
srcdev/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add --no-cache python3
RUN apk add --update py3-pip
# Copy data for add-on
COPY run.sh /
COPY run.py /
COPY requirements.txt /
COPY main.py /
COPY api.py /
COPY cron.py /
# COPY database.sqlite /
COPY moj_licznik.py /
COPY log_config.py /
RUN chmod a+x /run.sh
RUN pip install -r requirements.txt
CMD [ "/run.sh" ]