Mr-67 commited on
Commit
ac6d91d
·
verified ·
1 Parent(s): 8a9c0a4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12
2
+
3
+ WORKDIR /code
4
+
5
+ # Copy the dependency file and install
6
+ COPY pyproject.toml .
7
+ # We use pip to install from the toml dependencies
8
+ RUN pip install flask gunicorn
9
+
10
+ # Copy everything else
11
+ COPY . .
12
+
13
+ # IMPORTANT: Point to 'main' because your file is 'main.py'
14
+ # The format is 'filename:variable_name'
15
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]