Skip to content

Commit

Permalink
Update Dockerfile and remove SSL certificate handling
Browse files Browse the repository at this point in the history
This commit removes the lines about adding an application and handling SSL certificate in the Dockerfile. It also changes the "ADD" instruction to the "COPY" instruction for better build cache use and simplicity.
  • Loading branch information
bgharbi-globalpos committed Feb 6, 2024
1 parent 8a81c21 commit 03b6807
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM node:16.18.0

ADD . /app
WORKDIR /app
RUN --mount=type=secret,id=certificate \
cat /run/secrets/certificate >> /app/ca-certificate.crt

COPY . .
RUN yarn install && yarn build

CMD ["yarn","start"]

0 comments on commit 03b6807

Please sign in to comment.