Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
FROM python:3.8.0-alpine3.10
# Python docker images: https://github.com/docker-library/docs/tree/master/python/

USER root
FROM python:3.8.0-alpine

# Copy the src
WORKDIR /app
COPY src/ /app/src/
COPY ./requirements.txt /app
RUN ls -la /app

# Install python dependencies
RUN python3 --version
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r /app/requirements.txt
RUN pip3 list --format=columns

USER 1001

# EXPOSE 5001
ENTRYPOINT ["python3", "/app/src/app.py"]
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt || tru

COPY src/ /app/



EXPOSE 5001

CMD ["python", "app.py"]
9 changes: 8 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
# Install Instructions:
# pip3 install -r requirements.txt

flask==1.1.1

# requirements.txt
Flask==2.3.3
# Optional: pin core deps to compatible versions (helps reproducibility)
Jinja2==3.1.4
Werkzeug==2.3.7
itsdangerous==2.1.2
click==8.1.7