Skip to content

Commit

Permalink
build: docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 29, 2024
1 parent f79c651 commit 1346eb7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:20-alpine as build

WORKDIR /app

RUN corepack enable

COPY package.json /app
COPY pnpm-lock.yaml /app

RUN pnpm install

COPY . /app

RUN pnpm run build

FROM gcr.io/distroless/nodejs20

WORKDIR /app

COPY --from=build /app/.output /app

EXPOSE 3000/tcp

CMD ["/app/server/index.mjs"]

0 comments on commit 1346eb7

Please sign in to comment.