Add requirements.txt and update Dockerfile to install packages from it

This commit is contained in:
2025-12-28 21:02:51 +01:00
parent bfebad5e5d
commit 63f67c7188
2 changed files with 10 additions and 1 deletions

View File

@@ -1,7 +1,11 @@
FROM alpine:3.23 FROM alpine:3.23
RUN apk add --no-cache python3 py3-pip RUN apk add --no-cache python3 py3-pip
RUN pip3 install --break-system-packages flask flask-httpauth gunicorn requests jmespath
# Copy requirements and install Python packages
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --break-system-packages -r /tmp/requirements.txt
# Clean up apk cache # Clean up apk cache
RUN rm -rf /var/cache/apk/* RUN rm -rf /var/cache/apk/*

5
requirements.txt Normal file
View File

@@ -0,0 +1,5 @@
flask
flask-httpauth
gunicorn
requests
jmespath