16 lines
270 B
Docker
16 lines
270 B
Docker
|
FROM node:18-alpine AS build
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json .
|
||
|
COPY package-lock.json .
|
||
|
RUN npm ci
|
||
|
COPY . .
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM nginx:stable-alpine-slim
|
||
|
|
||
|
COPY ./docker/etc/nginx.conf /etc/nginx/nginx.conf
|
||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||
|
|
||
|
EXPOSE 80
|