rull commited on
Commit
aac706e
·
verified ·
1 Parent(s): 96e9afa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN useradd -m -u 1000 rull
4
+
5
+
6
+ USER rull
7
+
8
+ ENV HOME=/home/rull \
9
+ PATH=/home/rull/.local/bin:$PATH
10
+
11
+ WORKDIR $HOME/app
12
+
13
+ COPY --chown=rull . $HOME/app
14
+
15
+ RUN pip install -r requirements.txt --no-cache-dir --upgrade pip
16
+
17
+
18
+ CMD ["python3", "app.py"]