rairo commited on
Commit
db1f6c8
·
verified ·
1 Parent(s): 4b903dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -13,10 +13,10 @@ RUN pip3 install -r requirements.txt
13
  # Copy the rest of the application
14
  COPY --chown=user:user . .
15
 
16
- # Create the exports/charts directory and set permissions
17
- RUN mkdir -p exports/charts && \
18
- chmod -R 777 exports/charts && \
19
- chmod -R 777 .
20
 
21
  # Switch to the "user" user
22
  USER user
@@ -25,4 +25,4 @@ USER user
25
  ENV HOME=/home/user \
26
  PATH=/home/user/.local/bin:$PATH
27
 
28
- CMD ["python", "main.py"]
 
13
  # Copy the rest of the application
14
  COPY --chown=user:user . .
15
 
16
+ # Set permissions (but don't fail if directories already exist)
17
+ RUN mkdir -p exports/charts || true && \
18
+ chmod -R 777 . && \
19
+ chown -R user:user .
20
 
21
  # Switch to the "user" user
22
  USER user
 
25
  ENV HOME=/home/user \
26
  PATH=/home/user/.local/bin:$PATH
27
 
28
+ CMD ["python", "main.py"]