Update Dockerfile
Browse files- 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 |
-
#
|
|
|
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 |
-
#
|
40 |
-
RUN
|
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 . .
|