faizee07 commited on
Commit
68fb9ad
·
verified ·
1 Parent(s): 9e9ff82

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -18
Dockerfile CHANGED
@@ -1,25 +1,8 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
-
4
- # Set the working directory in the container
5
  WORKDIR /code
6
-
7
- # Copy the dependencies file to the working directory
8
  COPY requirements.txt .
9
-
10
- # Install any needed packages specified in requirements.txt
11
- # We also need git to be installed in the container
12
  RUN apt-get update && apt-get install -y git && \
13
  pip install --no-cache-dir -r requirements.txt
14
-
15
- # Copy the rest of the application code to the working directory
16
- COPY . .
17
-
18
- # Make port 7860 available to the world outside this container
19
  EXPOSE 7860
20
-
21
- # Define environment variable
22
- ENV PORT=7860
23
-
24
- # Run app.py when the container launches
25
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9-slim
 
 
2
  WORKDIR /code
 
 
3
  COPY requirements.txt .
 
 
 
4
  RUN apt-get update && apt-get install -y git && \
5
  pip install --no-cache-dir -r requirements.txt
6
+ COPY app.py .
 
 
 
 
7
  EXPOSE 7860
 
 
 
 
 
8
  CMD ["python", "app.py"]