14 lines
284 B
Docker
14 lines
284 B
Docker
FROM node:14-alpine as builder
|
|
WORKDIR '/app'
|
|
COPY ./package.json ./
|
|
COPY ./package-lock.json ./
|
|
COPY ./.npmrc ./
|
|
RUN npm i
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx
|
|
EXPOSE 3000
|
|
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|