iamironman4279 commited on
Commit
9966d17
·
verified ·
1 Parent(s): 4142aad

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.8
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements.txt file into the container at /app
8
+ COPY ./requirements.txt /app/requirements.txt
9
+
10
+
11
+
12
+ # Install any needed packages specified in requirements.txt
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy the current directory contents into the container at /app
16
+ COPY . /app
17
+
18
+ # Make port 5000 available to the world outside this container
19
+ EXPOSE 5000
20
+
21
+ # Define environment variable
22
+ ENV NAME World
23
+
24
+ # Run app.py when the container launches
25
+ CMD ["python", "app.py"]