Shabi23 commited on
Commit
1ff9080
·
verified ·
1 Parent(s): 120db1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -26
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
-
4
- # Set the working directory in the container
5
- WORKDIR /app
6
-
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Create a cache directory and set permissions
11
- RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
12
-
13
- # Install any needed packages specified in requirements.txt
14
- RUN pip install --no-cache-dir -r Requirements.txt
15
-
16
- # Set the environment variable for Hugging Face cache location
17
- ENV HF_HOME=/app/.cache
18
-
19
- # Make port 8080 available to the world outside this container
20
- EXPOSE 8080
21
-
22
- # Define environment variable for Flask app port
23
- ENV PORT=8080
24
-
25
- # Run the application using Gunicorn
26
- CMD ["gunicorn", "--bind", "0.0.0.0:8080", "application:application"]
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.11-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Create a cache directory and set permissions
11
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
12
+
13
+ # Install any needed packages specified in requirements.txt
14
+ RUN pip install --no-cache-dir -r Requirements.txt
15
+
16
+ # Set the environment variable for Hugging Face cache location
17
+ ENV HF_HOME=/app/.cache
18
+
19
+ # Make port 7680 available to the world outside this container
20
+ EXPOSE 7680
21
+
22
+ # Define environment variable for Flask app port
23
+ ENV PORT=7680
24
+
25
+ # Run the application using Gunicorn
26
+ CMD ["gunicorn", "--bind", "0.0.0.0:7680", "main:application"]