Adds Dockerbuild file

This commit is contained in:
2023-08-11 10:07:04 +02:00
parent 931783245c
commit 99b91a7ebb
5 changed files with 311 additions and 2 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:18-alpine as build
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
FROM node:18-alpine
WORKDIR /app
COPY package*.json .
RUN npm ci --omit dev
COPY --from=build /app/build /app/build/
ENV NODE_ENV="production"
ENTRYPOINT [ "node", "-r","dotenv/config", "build"]