Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
FROM rendyprojects/python:latest
|
2 |
|
3 |
-
WORKDIR /app
|
4 |
-
|
5 |
RUN apt -qq update
|
6 |
RUN apt -qq install -y --no-install-recommends \
|
7 |
curl \
|
@@ -13,10 +11,18 @@ WORKDIR /app
|
|
13 |
ffmpeg \
|
14 |
neofetch
|
15 |
|
16 |
-
RUN
|
|
|
|
|
17 |
|
|
|
|
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
|
21 |
RUN pip3 install --upgrade pip setuptools==59.6.0
|
22 |
RUN pip3 install -r requirements.txt
|
|
|
1 |
FROM rendyprojects/python:latest
|
2 |
|
|
|
|
|
3 |
RUN apt -qq update
|
4 |
RUN apt -qq install -y --no-install-recommends \
|
5 |
curl \
|
|
|
11 |
ffmpeg \
|
12 |
neofetch
|
13 |
|
14 |
+
RUN useradd -m -u 1000 user
|
15 |
+
|
16 |
+
USER user
|
17 |
|
18 |
+
ENV HOME=/home/user \
|
19 |
+
PATH=/home/user/.local/bin:$PATH
|
20 |
|
21 |
+
WORKDIR $HOME/app
|
22 |
+
|
23 |
+
COPY --chown=user . $HOME/app
|
24 |
+
|
25 |
+
RUN mkdir -p uploads && chmod 777 uploads
|
26 |
|
27 |
RUN pip3 install --upgrade pip setuptools==59.6.0
|
28 |
RUN pip3 install -r requirements.txt
|