Commit ·
59e1b4b
1
Parent(s): e79ea64
next env fail
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -11,7 +11,11 @@ RUN npm install
|
|
| 11 |
# Copy the rest of the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
RUN mkdir -p /usr/src/app/src/components/generated && \
|
| 16 |
chmod -R 755 /usr/src/app
|
| 17 |
|
|
|
|
| 11 |
# Copy the rest of the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# Generate the missing next-env.d.ts file and set permissions
|
| 15 |
+
RUN touch /usr/src/app/next-env.d.ts && \
|
| 16 |
+
chmod 666 /usr/src/app/next-env.d.ts
|
| 17 |
+
|
| 18 |
+
# Ensure directories for file writing exist and have correct permissions
|
| 19 |
RUN mkdir -p /usr/src/app/src/components/generated && \
|
| 20 |
chmod -R 755 /usr/src/app
|
| 21 |
|