From 09fa7c8619d4f823d9dccf8e67a620babba0d5b4 Mon Sep 17 00:00:00 2001 From: William Durand Date: Tue, 9 Jan 2024 19:00:59 +0100 Subject: [PATCH] Install git in Docker image (#12767) --- .circleci/config.yml | 14 ++++++++++++++ Dockerfile | 1 + 2 files changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 46bdf11444..51fef3fc66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -143,6 +143,14 @@ jobs: - *save_build_cache - run: yarn build-ci + build-docker-image: + <<: *defaults-release + steps: + - checkout + - run: + name: Build the docker image + command: docker build --pull . + build-blog-utils: <<: *defaults steps: @@ -356,6 +364,12 @@ workflows: default-workflow: jobs: - build + - build-docker-image: + filters: + branches: + ignore: master + tags: + ignore: /.*/ - test - build-next - test-next diff --git a/Dockerfile b/Dockerfile index 86612f564d..3bb24bb3d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ FROM node:18.19-slim AS builder WORKDIR /srv/node COPY package.json yarn.lock /srv/node/ +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates git && rm -rf /var/lib/apt/lists/ RUN yarn install --pure-lockfile #