Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -10,6 +10,13 @@ WORKDIR /code
|
|
10 |
COPY --chown=user ./requirements.txt /code/requirements.txt
|
11 |
|
12 |
ENV PATH="/home/user/.local/bin:${PATH}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
COPY --chown=user . .
|
15 |
|
|
|
10 |
COPY --chown=user ./requirements.txt /code/requirements.txt
|
11 |
|
12 |
ENV PATH="/home/user/.local/bin:${PATH}"
|
13 |
+
USER root
|
14 |
+
|
15 |
+
# Install ffmpeg
|
16 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
17 |
+
|
18 |
+
# Switch back to the "user" user
|
19 |
+
USER user
|
20 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
21 |
COPY --chown=user . .
|
22 |
|