mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-10 14:48:13 -05:00
update docker config
This commit is contained in:
@@ -9,17 +9,14 @@ RUN npm i -g yarn && yarn install
|
||||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
|
||||
|
||||
# Create image by copying build artifacts
|
||||
FROM node:18-alpine3.18 as runner
|
||||
RUN rm -rf /usr/local/bin/yarn && npm i -g yarn --force
|
||||
|
||||
USER node
|
||||
ARG PORT=3000
|
||||
|
||||
WORKDIR /home/node
|
||||
COPY --chown=node:node --from=builder /builder/ ./
|
||||
|
||||
ARG PORT=3000
|
||||
EXPOSE ${PORT}
|
||||
CMD ["yarn", "start"]
|
||||
|
||||
Reference in New Issue
Block a user