admin08077 commited on
Commit
c08c050
·
verified ·
1 Parent(s): 22dece8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile CHANGED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Use the official Python 3.10 slim image
3
+ FROM python:3.10-slim
4
+
5
+ # Set the working directory in the container
6
+ WORKDIR /code
7
+
8
+ # Copy the requirements file into the container
9
+ COPY ./requirements.txt /code/requirements.txt
10
+
11
+ # Install the Python dependencies
12
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
+
14
+ # Copy the application script into the container
15
+ COPY ./app.py.txt /code/app.py
16
+
17
+ # Expose the port Gradio runs on
18
+ EXPOSE 7860
19
+
20
+ # Command to run the application
21
+ CMD ["python", "/code/app.py"]