Fix Dockerfile for podman too (#583)

This commit is contained in:
Ben
2025-09-18 23:40:59 +02:00
committed by GitHub
parent 283df0a4e4
commit 5a584c58fe

View File

@@ -8,7 +8,7 @@ ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN npm run build RUN npm run build
# Stage 2: Setup the Nginx Server to serve the app # Stage 2: Setup the Nginx Server to serve the app
FROM nginx:stable-alpine3.17 AS production FROM docker.io/library/nginx:stable-alpine3.17 AS production
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80