Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -29,6 +29,10 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
|
|
| 29 |
# Create a working directory
|
| 30 |
WORKDIR /app
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Copy the web application files
|
| 33 |
COPY . .
|
| 34 |
|
|
|
|
| 29 |
# Create a working directory
|
| 30 |
WORKDIR /app
|
| 31 |
|
| 32 |
+
# Create the 'uploads' directory and set permissions
|
| 33 |
+
# This is the line that fixes the permission error
|
| 34 |
+
RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
|
| 35 |
+
|
| 36 |
# Copy the web application files
|
| 37 |
COPY . .
|
| 38 |
|