RajMoon commited on
Commit
36abf82
·
verified ·
1 Parent(s): 86198fa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+
11
+ WORKDIR $HOME/app
12
+ COPY --chown=user . $HOME/app
13
+
14
+ COPY ./requirements.txt /app/requirements.txt
15
+
16
+ RUN pip install -r requirements.txt
17
+
18
+ COPY . .
19
+
20
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]