Azeez98 commited on
Commit
be628e4
·
verified ·
1 Parent(s): 8ec67ed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -3,7 +3,6 @@ FROM python:3.9-slim
3
 
4
  # Set work directory
5
  WORKDIR /usr/src/app
6
- RUN mkdir /usr/src/app/staticfiles
7
 
8
  # Set environment variables
9
  ENV PYTHONDONTWRITEBYTECODE 1
@@ -25,5 +24,8 @@ COPY download_and_push.sh /usr/src/app/download_and_push.sh
25
  # Make the script executable
26
  RUN chmod +x /usr/src/app/download_and_push.sh
27
 
 
 
 
28
  # Set the entry point to run the script
29
  ENTRYPOINT ["/usr/src/app/download_and_push.sh"]
 
3
 
4
  # Set work directory
5
  WORKDIR /usr/src/app
 
6
 
7
  # Set environment variables
8
  ENV PYTHONDONTWRITEBYTECODE 1
 
24
  # Make the script executable
25
  RUN chmod +x /usr/src/app/download_and_push.sh
26
 
27
+ # Ensure the script runs with the correct permissions
28
+ RUN chown -R root:root /usr/src/app
29
+
30
  # Set the entry point to run the script
31
  ENTRYPOINT ["/usr/src/app/download_and_push.sh"]