- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -28,9 +28,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 28 |
# Copy the rest of the application with correct ownership
|
| 29 |
COPY --chown=user . .
|
| 30 |
|
| 31 |
-
# Create directories that are not copied but required
|
| 32 |
-
# and ensure
|
| 33 |
-
RUN mkdir -p data temp logs && chown -R user:user
|
| 34 |
|
| 35 |
USER user
|
| 36 |
ENV HOME=/home/user \
|
|
|
|
| 28 |
# Copy the rest of the application with correct ownership
|
| 29 |
COPY --chown=user . .
|
| 30 |
|
| 31 |
+
# Create directories that are not copied but required
|
| 32 |
+
# and ensure the entire app directory is owned by user
|
| 33 |
+
RUN mkdir -p data temp logs && chown -R user:user /app
|
| 34 |
|
| 35 |
USER user
|
| 36 |
ENV HOME=/home/user \
|