Skip to content

Commit

Permalink
update docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
kalidiagne committed Oct 30, 2024
1 parent 1f4a660 commit 1875517
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 1875517

Please sign in to comment.