-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.10-slim
# Prevent Python from buffering stdout/stderr
ENV PYTHONUNBUFFERED=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
#COPY flask-app /app/flask-app
COPY flask-app/ .
COPY requirements.txt .
COPY startup.sh .
RUN pip install -r requirements.txt
# Expose Flask port
EXPOSE 5000
RUN mkdir -p /output
#CMD ["python", "flask-app/wsgi.py"]
#CMD ["python", "wsgi.py"]
CMD ["bash", "/app/startup.sh"]
## Use the slim Python 3.10 image as the base to build on
#FROM python:3.10-slim
#
## Copy in the Flask application code
#COPY flask-app/ .
#
## Install the python requirements
#RUN pip install -r requirements.txt
#
## Run the application
#CMD ["python3", "./wsgi.py"]