mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-09 14:18:02 -05:00
24 lines
382 B
Docker
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"]
|