Build docker image

This commit is contained in:
HitomaruKonpaku
2023-08-29 12:47:41 +07:00
parent f6eeef28c5
commit f0a302d18e
5 changed files with 49 additions and 0 deletions

15
docker/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
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