You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
307 B
13 lines
307 B
### STAGE 1: Build ###
|
|
FROM node:alpine AS build
|
|
WORKDIR /usr/src/app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
### STAGE 2: Run ###
|
|
FROM nginx:alpine
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /usr/src/app/dist/portfolioo/browser /usr/share/nginx/html
|