mramjad commited on
Commit
1005160
·
verified ·
1 Parent(s): ff588f1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -22
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
- # Use an official Python runtime as the base image
2
- FROM python:3.9-slim
3
-
4
- # Set the working directory in the container
5
- WORKDIR /app
6
-
7
- # Copy the requirements file into the container
8
- COPY requirements.txt .
9
-
10
- # Install the dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy the rest of the application code
14
- COPY . .
15
-
16
- # Create the 'flagged' directory and set permissions
17
- RUN mkdir -p /app/flagged && chmod -R 777 /app
18
-
19
- # Expose the port that Gradio will run on
20
- EXPOSE 7860
21
-
22
- # Command to run the app
23
  CMD ["python", "app.py"]
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file into the container
8
+ COPY requirements.txt .
9
+
10
+ # Install the dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the rest of the application code
14
+ COPY . .
15
+
16
+ # Create the 'flagged' directory and set permissions
17
+ RUN mkdir -p /app/flagged && chmod -R 777 /app
18
+
19
+ # Expose the port that Gradio will run on
20
+ EXPOSE 7860
21
+
22
+ # Command to run the app
23
  CMD ["python", "app.py"]