dc/client/Dockerfile

14 lines
284 B
Docker
Raw Normal View History

2023-07-13 11:44:05 +00:00
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