diff --git a/Dockerfile b/Dockerfile index 6c36382..8e4450e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ FROM alpine:3.23 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 RUN rm -rf /var/cache/apk/* diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4b5cc14 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +flask +flask-httpauth +gunicorn +requests +jmespath