mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-10 14:48:13 -05:00
23 lines
370 B
Docker
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"]
|