Hgodwarrior commited on
Commit
921d6d5
·
verified ·
1 Parent(s): db8c654

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY index.html .
6
+ COPY server.py .
7
+ COPY demo_data/ ./demo_data/
8
+
9
+ RUN useradd -m -u 1000 user
10
+ RUN chown -R user:user /app
11
+ USER user
12
+
13
+ EXPOSE 7860
14
+
15
+ CMD ["python3", "server.py"]