Kabilash10 commited on
Commit
8cc6599
·
verified ·
1 Parent(s): 5b9688f

Create Dockerfile

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