Skip to content

Commit c2c5f30

Browse files
authored
Add files via upload
1 parent 19b3ccf commit c2c5f30

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Python
2+
FROM python:3.8
3+
4+
# Working dir
5+
WORKDIR /app
6+
7+
# Copy current dir contents into the container at /app
8+
COPY . /app
9+
10+
# Install required packages from requirements.txt
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Make port 5000 available
14+
EXPOSE 5000
15+
16+
# Define env variable
17+
ENV NAME World
18+
19+
# Run app.py when container launches
20+
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]

0 commit comments

Comments
 (0)