Add requirements.txt and update Dockerfile to install packages from it
This commit is contained in:
@@ -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
5
requirements.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
flask
|
||||||
|
flask-httpauth
|
||||||
|
gunicorn
|
||||||
|
requests
|
||||||
|
jmespath
|
||||||
Reference in New Issue
Block a user