Skip to content

Commit

Permalink
Merge pull request #240 from ilogus/fix-docker-build-warning
Browse files Browse the repository at this point in the history
Fix casing do not match warning
  • Loading branch information
1ilit authored Sep 11, 2024
2 parents 419ea13 + ef18856 commit 322ef96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
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
Expand Down

0 comments on commit 322ef96

Please sign in to comment.