Files
pse.dev/Dockerfile
Kalidou Diagne a9ec3101e7 Fix: GitHub deploy issue (#333)
* fix: node version

* feat: fix github deploy issue
2025-04-17 20:23:50 +01:00

24 lines
382 B
Docker

FROM node:20-alpine as builder
RUN apk add --no-cache git curl
WORKDIR /builder
COPY package.json yarn.lock ./
RUN corepack enable
RUN yarn install
COPY . .
RUN yarn build
# Create image by copying build artifacts
FROM node:20-alpine as runner
USER node
WORKDIR /home/node
COPY --chown=node:node --from=builder /builder/ ./
ARG PORT=3000
EXPOSE ${PORT}
CMD ["yarn", "start"]