Added very simple nginx-based dockerfile

This commit is contained in:
Marcel Hellkamp 2023-07-17 16:29:57 +02:00
parent a2d4202b76
commit 8027e9187d
2 changed files with 15 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
.github
.vscode
node_modules
dist

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM node:18-alpine as BUILD
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci
COPY ./ ./
RUN npm run build
FROM nginx
COPY --from=BUILD /build/dist /usr/share/nginx/html