From e6b03bc97ebd560c4ee288895ffa10f3d0265a2b Mon Sep 17 00:00:00 2001 From: William Durand Date: Tue, 9 Jan 2024 18:01:52 +0100 Subject: [PATCH] Install git in Docker image --- .circleci/config.yml | 14 ++++++++++++++ Dockerfile | 1 + 2 files changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 46bdf11444c..51fef3fc669 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 86612f564d3..3bb24bb3d90 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 #