alphg commited on
Commit
1124ca7
·
verified ·
1 Parent(s): d25cfc0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,7 +1,14 @@
1
  FROM python:3.12-slim
2
 
3
- WORKDIR /app
4
- COPY . /app
 
 
 
 
 
 
 
5
 
6
  RUN pip install --trusted-host pypi.python.org -r requirements.txt
7
  RUN apt-get update && apt-get install -y libreoffice && apt-get install -y ffmpeg
 
1
  FROM python:3.12-slim
2
 
3
+ RUN useradd user
4
+
5
+ USER user
6
+
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+ WORKDIR $HOME/app
11
+ COPY --chown=user ./ $HOME/app
12
 
13
  RUN pip install --trusted-host pypi.python.org -r requirements.txt
14
  RUN apt-get update && apt-get install -y libreoffice && apt-get install -y ffmpeg