Skip to content

Commit

Permalink
Improve container
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Sep 18, 2024
1 parent 0af74ee commit d20f90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:22-alpine AS build

RUN apk add dumb-init

RUN corepack enable
RUN yarn set version berry

Expand All @@ -21,6 +23,8 @@ ARG PORT=3010

ENV NODE_ENV production

COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init

RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache ffmpeg exiftool && \
Expand All @@ -39,4 +43,4 @@ COPY --chown=${USER_NAME}:${GROUP_NAME} --from=build /home/node/aws-upload-servi

EXPOSE $PORT

CMD [ "node", "dist/index.js" ]
CMD [ "dumb-init", "node", "dist/index.js" ]

0 comments on commit d20f90f

Please sign in to comment.