diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f482b10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:20 AS base +WORKDIR /src + +FROM base AS builder +COPY package.json package-lock.json . +RUN npm install +COPY . . +RUN npm run build + +FROM base AS production +ENV PORT=3000 +ENV NODE_ENV=production +COPY --from=builder /src/.output /src/.output +CMD [ "node", ".output/server/index.mjs" ] |
