Add Dockerfile for application containerization
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM alpine:3.23
|
||||
|
||||
RUN apk add --no-cache python3 py3-pip
|
||||
RUN pip3 install --break-system-packages flask flask-httpauth gunicorn requests jmespath
|
||||
# Clean up apk cache
|
||||
RUN rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY app.py /app/app.py
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
|
||||
Reference in New Issue
Block a user