This commit is contained in:
2021-11-17 15:36:58 +01:00
parent fc79be588f
commit ad13a6f0c1
12 changed files with 244 additions and 37 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM node:16-alpine as builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm exec pnpm i --frozen-lockfile
COPY . .
RUN npm exec pnpm run build
RUN ls -hal
FROM node:16-alpine
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm exec pnpm i --frozen-lockfile --prod
COPY --from=builder /app/dist ./dist
ENV ASSETS=/data
ENV ADDRESS=0.0.0.0
EXPOSE 80
CMD [ "node", "dist/src" ]