Compare commits

..

1 Commits

Author SHA1 Message Date
amorozov 832f7f29fe chore: changed agent base image to own alpine-base
Gitea/docker-base-images/jdk14-alpine/pipeline/head This commit looks good Details
2023-04-04 20:20:39 +03:00
1 changed files with 7 additions and 8 deletions

View File

@ -6,14 +6,16 @@ FROM ${BASE_IMAGE}
ENV GROOVY_HOME=/opt/groovy
ENV GROOVY_VERSION=4.0.9
ENV DOCKER_COMPOSE_VERSION 1.23.2
# Install docker-cli, docker-compose, git, bash
RUN apk update && \
apk add --no-cache docker-cli bash git
apk add --no-cache docker-cli python3 py3-pip git bash && \
apk add --no-cache --virtual .docker-compose-deps python3-dev libffi-dev openssl-dev gcc libc-dev make && \
# ln -s /usr/bin/pip3 /usr/bin/pip && \
ln -s /usr/bin/python3 /usr/bin/python && \
pip install --upgrade pip && \
pip3 install docker-compose && \
apk del .docker-compose-deps
RUN apk --update add py-pip &&\
pip install -U docker-compose==${DOCKER_COMPOSE_VERSION}
RUN set -o errexit -o nounset && echo "Installing build dependencies" && \
apk add --no-cache --virtual .build-deps gnupg && \
@ -42,6 +44,3 @@ RUN set -o errexit -o nounset && echo "Installing build dependencies" && \
echo "Editing startGroovy to include java.xml.bind module" && \
sed --in-place 's|startGroovy ( ) {|startGroovy ( ) {\n JAVA_OPTS="$JAVA_OPTS --add-modules=ALL-SYSTEM"|' "${GROOVY_HOME}/bin/startGroovy"
RUN apk add --no-cache openssh-client
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx