Files
pse.dev/Dockerfile
Kalidou Diagne 0eb5d132da fix docker update
2024-10-30 20:05:45 +01:00

23 lines
370 B
Docker

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