Skip to content

Commit 322ef96

Browse files
authored
Merge pull request #240 from ilogus/fix-docker-build-warning
Fix casing do not match warning
2 parents 419ea13 + ef18856 commit 322ef96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Stage 1: Build the app
2-
FROM node:20-alpine as build
2+
FROM node:20-alpine AS build
33
WORKDIR /app
44
COPY package*.json ./
55
RUN npm ci
66
COPY . .
77
RUN npm run build
88

99
# Stage 2: Setup the Nginx Server to serve the app
10-
FROM nginx:stable-alpine3.17 as production
10+
FROM nginx:stable-alpine3.17 AS production
1111
COPY --from=build /app/dist /usr/share/nginx/html
1212
RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
1313
EXPOSE 80

0 commit comments

Comments
 (0)