Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|