randydev commited on
Commit
869094c
·
verified ·
1 Parent(s): ce8cfbf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 /usr/src/app
 
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 /usr
37
- RUN chmod 777 /usr
 
 
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