radames commited on
Commit
2e6727e
1 Parent(s): 7f871a4

dockerfile

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