Build implementation

This commit is contained in:
arch-fan
2024-10-09 10:26:03 +02:00
parent 1feab842b3
commit 3434464aa0

17
Dockerfile Normal file
View File

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