From b9d64e8fd828a812ce37e56200d3cea8e1c4f8ce Mon Sep 17 00:00:00 2001 From: Louis Guitton Date: Mon, 20 Apr 2026 16:45:34 +0200 Subject: [PATCH] fix(ci-action): install git in Dockerfile so `lingo.dev ci` works outside GitHub runners Closes #2074 --- .changeset/fix-dockerfile-install-git.md | 5 +++++ Dockerfile | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/fix-dockerfile-install-git.md diff --git a/.changeset/fix-dockerfile-install-git.md b/.changeset/fix-dockerfile-install-git.md new file mode 100644 index 000000000..e62af4789 --- /dev/null +++ b/.changeset/fix-dockerfile-install-git.md @@ -0,0 +1,5 @@ +--- +"lingo.dev": patch +--- + +Install `git` in the `lingodotdev/ci-action` Docker image so `lingo.dev ci` works in runners that do not already provide it (e.g. GitLab CI using the image directly). diff --git a/Dockerfile b/Dockerfile index 9dc77c540..c8c9d431a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ FROM node:20.12.2-alpine +# git is required by `lingo.dev ci` (configureGit) and is not included in the +# node:alpine base image. +RUN apk add --no-cache git + # Run the Node.js / TypeScript application ENTRYPOINT ["sh", "-c", "npx lingo.dev@latest ci \ --api-key \"$LINGODOTDEV_API_KEY\" \