Commit ·
1e47635
1
Parent(s): 798c4ed
check
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -11,9 +11,11 @@ RUN npm install
|
|
| 11 |
# Copy the rest of the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
# Ensure directories
|
| 15 |
-
RUN mkdir -p /usr/src/app/
|
| 16 |
-
chmod -R
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Create a non-root user and switch to it
|
| 19 |
RUN adduser -D appuser && \
|
|
|
|
| 11 |
# Copy the rest of the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# Ensure all directories that need to be writable are properly set up
|
| 15 |
+
RUN mkdir -p /usr/src/app/.next && \
|
| 16 |
+
chmod -R 777 /usr/src/app && \
|
| 17 |
+
mkdir -p /usr/src/app/src/components/generated && \
|
| 18 |
+
chmod -R 777 /usr/src/app/src/components/generated
|
| 19 |
|
| 20 |
# Create a non-root user and switch to it
|
| 21 |
RUN adduser -D appuser && \
|