Attempt at docker building

This commit is contained in:
3wc
2024-03-08 13:06:23 -03:00
parent 1b7ee20d05
commit 424359ec0f
4 changed files with 23 additions and 2 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:21-alpine3.18
RUN npm i -g pnpm turbo
WORKDIR /app
COPY . .
RUN pnpm install
ENV PAYLOAD_CONFIG_PATH=src/payload.config.ts
RUN pnpm build
CMD ["pnpm", "serve"]