hellosara commited on
Commit
8180aa7
·
verified ·
1 Parent(s): 711c1b2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python image
2
+ FROM python:3.9
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /code
6
+
7
+ # Copy the requirements file from the root
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
+
13
+ # Copy all files and folders (including 'pages' and 'assets')
14
+ COPY . /code
15
+
16
+ # Start the app using Gunicorn on port 7860
17
+ # This assumes your main file is 'app.py' and it contains 'server = app.server'
18
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:server"]