Skip to content

Commit

Permalink
⬆️ Update Dockerfile to use new Node + git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
evilru committed Sep 11, 2024
1 parent 0da7273 commit cb0965a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM node:12.14.1-alpine3.11
# syntax=docker/dockerfile:1
FROM node:lts-alpine3.20
ENV NODE_ENV=production

# install dependencies
RUN apk add --no-cache git=2.24.1-r0
RUN apk add --no-cache git \
&& git config --global --add safe.directory /app

# build gitmoji-changelog from source
WORKDIR /usr/src/gitmoji-changelog
Expand All @@ -13,4 +15,3 @@ RUN yarn --frozen-lockfile && yarn cache clean
RUN ln -s /usr/src/gitmoji-changelog/node_modules/.bin/gitmoji-changelog /usr/bin
WORKDIR /app
ENTRYPOINT ["gitmoji-changelog"]
USER node

0 comments on commit cb0965a

Please sign in to comment.