From 9496641437fb128b25cd6e883fa7fcc441f1cbb6 Mon Sep 17 00:00:00 2001 From: TC Date: Thu, 2 Nov 2023 22:53:19 +0100 Subject: [PATCH] modified: .gitignore new file: srcdev/Dockerfile --- .gitignore | 2 +- srcdev/Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcdev/Dockerfile diff --git a/.gitignore b/.gitignore index 1158c1d..e4fbc82 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ import.py check.py database.sqlite config.ini -Dockerfile +/Dockerfile # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/srcdev/Dockerfile b/srcdev/Dockerfile new file mode 100644 index 0000000..328d165 --- /dev/null +++ b/srcdev/Dockerfile @@ -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" ] \ No newline at end of file