Laurenc Kaefer commited on
Commit
f8d0743
·
1 Parent(s): e7d7f7c

ADD: docker files

Browse files
Files changed (2) hide show
  1. .dockerignore +10 -0
  2. Dockerfile +15 -0
.dockerignore ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ignore python generated files
2
+ *.pyc
3
+ __pycache__/
4
+
5
+ # ignore everything related to tests
6
+ test_*.py
7
+ .pytest_cache/
8
+
9
+ # ignore development files
10
+ run.py
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY . .
10
+
11
+ EXPOSE 8000
12
+ #Your Docker Space needs to listen on port 7860
13
+
14
+ # start gunicorn server
15
+ CMD ["/bin/sh", "-c", "gunicorn --bind 0.0.0.0:$PORT wsgi:app"]