mgbam commited on
Commit
bdaeba8
·
verified ·
1 Parent(s): 392f2f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -26,7 +26,8 @@ ARG APP_USER_GID=1000
26
  RUN groupadd --gid $APP_USER_GID appgroup && \
27
  useradd --uid $APP_USER_UID --gid appgroup --shell /bin/bash --create-home appuser
28
 
29
- # Set working directory
 
30
  WORKDIR /home/appuser/app
31
 
32
  # Install Python dependencies
@@ -36,9 +37,8 @@ USER appuser
36
  RUN python -m pip install --no-cache-dir --upgrade pip && \
37
  python -m pip install --no-cache-dir -r requirements.txt --verbose
38
 
39
- # Verify installation
40
- RUN which streamlit || echo "streamlit not found in PATH" && \
41
- ls -l /home/appuser/.local/bin || echo "Local bin directory not found"
42
 
43
  # Copy application code
44
  COPY --chown=appuser:appgroup . .
 
26
  RUN groupadd --gid $APP_USER_GID appgroup && \
27
  useradd --uid $APP_USER_UID --gid appgroup --shell /bin/bash --create-home appuser
28
 
29
+ # Create and set working directory with proper permissions
30
+ RUN mkdir -p /home/appuser/app && chown appuser:appgroup /home/appuser/app
31
  WORKDIR /home/appuser/app
32
 
33
  # Install Python dependencies
 
37
  RUN python -m pip install --no-cache-dir --upgrade pip && \
38
  python -m pip install --no-cache-dir -r requirements.txt --verbose
39
 
40
+ # Create writable directory for application temp files
41
+ RUN mkdir -p temp_cinegen_media && chmod 775 temp_cinegen_media
 
42
 
43
  # Copy application code
44
  COPY --chown=appuser:appgroup . .