tianlong12 commited on
Commit
5be86d9
·
verified ·
1 Parent(s): 97ce33c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Use an official Python runtime as the base image
3
+ FROM python:3.9-slim
4
+
5
+ # Set the working directory in the container
6
+ WORKDIR /app
7
+
8
+ # Copy the current directory contents into the container at /app
9
+ COPY . /app
10
+
11
+ # Install the required packages
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Make port 7860 available to the world outside this container
15
+ EXPOSE 7860
16
+
17
+ # Run app.py when the container launches
18
+ CMD ["python", "app.py"]