Compare commits
2 commits
02f5a04e99
...
5a7258e0e2
Author | SHA1 | Date | |
---|---|---|---|
|
5a7258e0e2 | ||
e59af9afe9 |
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
# build stage
|
||||
FROM node:lts-alpine as build-stage
|
||||
FROM node:lts-alpine AS build-stage
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
RUN npm i
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# production stage
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
FROM nginx:stable-alpine AS production-stage
|
||||
|
||||
# Remove default Nginx index page
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
|
Loading…
Add table
Reference in a new issue