oceansweep commited on
Commit
0e43f80
1 Parent(s): a4566ff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -15,13 +15,6 @@ RUN apt-get update && apt-get install -y \
15
  libcudnn8 \
16
  libcudnn8-dev \
17
  sudo
18
-
19
- # Switch to the "user" user
20
- USER user
21
-
22
- # Set home to the user's home directory
23
- ENV HOME=/home/user \
24
- PATH=/home/user/.local/bin:$PATH
25
 
26
  # Set environment variables
27
  ENV PYTHONUNBUFFERED=1 \
@@ -44,13 +37,20 @@ COPY --chown=user . $HOME/app
44
 
45
  COPY ./requirements.txt /home/user/app/requirements.txt
46
 
47
- RUN pip3 install --no-cache-dir --upgrade -r /home/user/app/requirements.txt
 
 
 
 
 
48
 
49
  # Create necessary directories and set permissions
50
  RUN mkdir -p /home/user/app/Results/Audio_Processing /app/Results/Video_Downloads
51
 
52
  RUN chmod -R 777 /home/user/app/*
53
 
 
 
54
  RUN whoami && \
55
  echo "Permissions for ./app:" && \
56
  ls -la ./app && \
 
15
  libcudnn8 \
16
  libcudnn8-dev \
17
  sudo
 
 
 
 
 
 
 
18
 
19
  # Set environment variables
20
  ENV PYTHONUNBUFFERED=1 \
 
37
 
38
  COPY ./requirements.txt /home/user/app/requirements.txt
39
 
40
+ # Switch to the "user" user
41
+ USER user
42
+
43
+ # Set home to the user's home directory
44
+ ENV HOME=/home/user \
45
+ PATH=/home/user/.local/bin:$PATH
46
 
47
  # Create necessary directories and set permissions
48
  RUN mkdir -p /home/user/app/Results/Audio_Processing /app/Results/Video_Downloads
49
 
50
  RUN chmod -R 777 /home/user/app/*
51
 
52
+ RUN pip3 install --no-cache-dir --upgrade -r /home/user/app/requirements.txt
53
+
54
  RUN whoami && \
55
  echo "Permissions for ./app:" && \
56
  ls -la ./app && \