From ef188566d5b5d5595728d420216dc750e6a367b3 Mon Sep 17 00:00:00 2001 From: ilogus Date: Tue, 10 Sep 2024 20:32:35 +0200 Subject: [PATCH] fix casing do not match warning --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa5f349..9365ee1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the app -FROM node:20-alpine as build +FROM node:20-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm ci @@ -7,7 +7,7 @@ COPY . . RUN npm run build # Stage 2: Setup the Nginx Server to serve the app -FROM nginx:stable-alpine3.17 as production +FROM nginx:stable-alpine3.17 AS production 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 EXPOSE 80