Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -42,6 +42,9 @@ FROM nginx:1.27-alpine AS runtime
|
|
| 42 |
# $PORT (defaults to 80) and serves the SPA with hash-routing fallback.
|
| 43 |
RUN rm /etc/nginx/conf.d/default.conf
|
| 44 |
|
|
|
|
|
|
|
|
|
|
| 45 |
# Inline nginx config — kept here so the image is reproducible without
|
| 46 |
# any extra files outside the Docker build context.
|
| 47 |
RUN printf '%s\n' \
|
|
|
|
| 42 |
# $PORT (defaults to 80) and serves the SPA with hash-routing fallback.
|
| 43 |
RUN rm /etc/nginx/conf.d/default.conf
|
| 44 |
|
| 45 |
+
# Create the templates directory before writing to it
|
| 46 |
+
RUN mkdir -p /etc/nginx/templates
|
| 47 |
+
|
| 48 |
# Inline nginx config — kept here so the image is reproducible without
|
| 49 |
# any extra files outside the Docker build context.
|
| 50 |
RUN printf '%s\n' \
|