From 5f7beedc8e3ce2a283912becc427d21cf7b1276a Mon Sep 17 00:00:00 2001 From: bkbilly Date: Sat, 14 Oct 2023 16:03:26 +0300 Subject: [PATCH] Fix issue with warkzeug library --- Dockerfile | 13 +++++++++++++ requirements.txt | 1 + 2 files changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac6b146 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3.18.4 as build +WORKDIR /opt/AlarmPI + +RUN apk update && apk add jq python3 py3-pip gcc libc-dev python3-dev + +COPY . /opt/AlarmPI +WORKDIR /opt/AlarmPI +RUN pip3 install -r requirements.txt +RUN cp config/settings_template.json config/settings.json +RUN cp config/server_template.json config/server.json +RUN touch alert.log + +ENTRYPOINT ["/usr/bin/python3", "/opt/AlarmPI/run.py"] diff --git a/requirements.txt b/requirements.txt index c060e47..fb8696b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ requests>=2.22.0 pytz>=2019.2 paho-mqtt>=1.4.0 RPi.GPIO>=0.7.0 +Werkzeug==2.2.2