mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-09 14:18:02 -05:00
Add Dockerfile
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:18-alpine as builder
|
||||
RUN apk add --no-cache git curl
|
||||
|
||||
WORKDIR /builder
|
||||
COPY . .
|
||||
RUN npm i -g pnpm
|
||||
RUN pnpm install
|
||||
|
||||
# Create image by copying build artifacts
|
||||
FROM node:18-alpine as runner
|
||||
RUN npm i -g pnpm
|
||||
|
||||
USER node
|
||||
ARG PORT=3000
|
||||
|
||||
WORKDIR /home/node
|
||||
COPY --chown=node:node --from=builder /builder/ ./
|
||||
|
||||
EXPOSE ${PORT}
|
||||
CMD ["pnpm", "dev"]
|
||||
Reference in New Issue
Block a user