Install git in Docker image (#12767)
This commit is contained in:
Родитель
6ba1813668
Коммит
09fa7c8619
|
@ -143,6 +143,14 @@ jobs:
|
||||||
- *save_build_cache
|
- *save_build_cache
|
||||||
- run: yarn build-ci
|
- run: yarn build-ci
|
||||||
|
|
||||||
|
build-docker-image:
|
||||||
|
<<: *defaults-release
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Build the docker image
|
||||||
|
command: docker build --pull .
|
||||||
|
|
||||||
build-blog-utils:
|
build-blog-utils:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
|
@ -356,6 +364,12 @@ workflows:
|
||||||
default-workflow:
|
default-workflow:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
|
- build-docker-image:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: master
|
||||||
|
tags:
|
||||||
|
ignore: /.*/
|
||||||
- test
|
- test
|
||||||
- build-next
|
- build-next
|
||||||
- test-next
|
- test-next
|
||||||
|
|
|
@ -6,6 +6,7 @@ FROM node:18.19-slim AS builder
|
||||||
WORKDIR /srv/node
|
WORKDIR /srv/node
|
||||||
COPY package.json yarn.lock /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
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Загрузка…
Ссылка в новой задаче