feat: added docker support

This commit is contained in:
moonleay 2023-12-05 21:05:31 +01:00
parent ceb5907ca5
commit 26b1f53f3c
Signed by: moonleay
GPG key ID: 82667543CCD715FB
3 changed files with 49 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM node:lts AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine AS runtime
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080