Skip to content

Commit 09fa7c8

Browse files
authored
Install git in Docker image (#12767)
1 parent 6ba1813 commit 09fa7c8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ jobs:
143143
- *save_build_cache
144144
- run: yarn build-ci
145145

146+
build-docker-image:
147+
<<: *defaults-release
148+
steps:
149+
- checkout
150+
- run:
151+
name: Build the docker image
152+
command: docker build --pull .
153+
146154
build-blog-utils:
147155
<<: *defaults
148156
steps:
@@ -356,6 +364,12 @@ workflows:
356364
default-workflow:
357365
jobs:
358366
- build
367+
- build-docker-image:
368+
filters:
369+
branches:
370+
ignore: master
371+
tags:
372+
ignore: /.*/
359373
- test
360374
- build-next
361375
- test-next

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM node:18.19-slim AS builder
66
WORKDIR /srv/node
77
COPY package.json yarn.lock /srv/node/
88

9+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates git && rm -rf /var/lib/apt/lists/
910
RUN yarn install --pure-lockfile
1011

1112
#

0 commit comments

Comments
 (0)