Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -22,7 +22,8 @@ RUN apt -qq update && \
|
|
22 |
apt-get clean && \
|
23 |
rm -rf /var/lib/apt/lists/
|
24 |
|
25 |
-
WORKDIR /
|
|
|
26 |
|
27 |
# Copy application code and install Python dependencies
|
28 |
COPY . .
|
@@ -30,11 +31,12 @@ RUN pip3 install --upgrade pip setuptools
|
|
30 |
COPY requirements.txt .
|
31 |
RUN pip3 install -r requirements.txt
|
32 |
|
33 |
-
# Set permissions
|
34 |
RUN chown -R 1000:0 .
|
35 |
RUN chmod 777 .
|
36 |
-
RUN chown -R 1000:0 /
|
37 |
-
RUN chmod 777 /
|
|
|
|
|
38 |
|
39 |
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
|
40 |
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
|
|
|
22 |
apt-get clean && \
|
23 |
rm -rf /var/lib/apt/lists/
|
24 |
|
25 |
+
WORKDIR /app
|
26 |
+
WORKDIR /.cache
|
27 |
|
28 |
# Copy application code and install Python dependencies
|
29 |
COPY . .
|
|
|
31 |
COPY requirements.txt .
|
32 |
RUN pip3 install -r requirements.txt
|
33 |
|
|
|
34 |
RUN chown -R 1000:0 .
|
35 |
RUN chmod 777 .
|
36 |
+
RUN chown -R 1000:0 /app
|
37 |
+
RUN chmod 777 /app
|
38 |
+
RUN chown -R 1000:0 /.cache
|
39 |
+
RUN chmod 777 /.cache
|
40 |
|
41 |
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
|
42 |
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
|