feat: add dockerfile

This commit is contained in:
kolaente 2024-06-27 23:00:25 +02:00
parent e8bbf98495
commit 9342f420a4
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:lts AS build
WORKDIR /app
COPY . .
RUN corepack enable && \
pnpm install --frozen-lockfile && \
pnpm run build
FROM node:lts AS runtime
WORKDIR /app
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs