We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77c060b + 322ef96 commit 2bcc865Copy full SHA for 2bcc865
Dockerfile
@@ -1,13 +1,13 @@
1
# Stage 1: Build the app
2
-FROM node:20-alpine as build
+FROM node:20-alpine AS build
3
WORKDIR /app
4
COPY package*.json ./
5
RUN npm ci
6
COPY . .
7
RUN npm run build
8
9
# Stage 2: Setup the Nginx Server to serve the app
10
-FROM nginx:stable-alpine3.17 as production
+FROM nginx:stable-alpine3.17 AS production
11
COPY --from=build /app/dist /usr/share/nginx/html
12
RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
13
EXPOSE 80
0 commit comments