ci: install build-base in docker

This commit is contained in:
Denis Gukov 2023-03-10 11:56:38 +01:00
parent 423c3e053e
commit 3d20f52672
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ENV SEMAPHORE_VERSION="development" SEMAPHORE_ARCH="linux_amd64" \
APP_ROOT="/go/src/github.com/ansible-semaphore/semaphore/"
# hadolint ignore=DL3013
RUN apk add --no-cache gcc sshpass git mysql-client python3 py3-pip py-openssl openssl ca-certificates curl curl-dev openssh-client-default tini nodejs npm bash rsync && \
RUN apk add --no-cache build-base sshpass git mysql-client python3 py3-pip py-openssl openssl ca-certificates curl curl-dev openssh-client-default tini nodejs npm bash rsync && \
apk --update add --virtual build-dependencies python3-dev libffi-dev openssl-dev build-base &&\
rm -rf /var/cache/apk/*

View File

@ -4,7 +4,7 @@ FROM golang:1.18.3-alpine3.16 as builder
COPY ./ /go/src/github.com/ansible-semaphore/semaphore
WORKDIR /go/src/github.com/ansible-semaphore/semaphore
RUN apk add --no-cache -U libc-dev curl nodejs npm git gcc && \
RUN apk add --no-cache -U libc-dev curl nodejs npm git build-base && \
./deployment/docker/prod/bin/install
FROM alpine:3.16 as runner

View File

@ -7,7 +7,7 @@ WORKDIR /go/src/github.com/ansible-semaphore/semaphore
ARG TARGETOS
ARG TARGETARCH
RUN apk add --no-cache -U libc-dev curl nodejs npm git gcc
RUN apk add --no-cache -U libc-dev curl nodejs npm git build-base
RUN ./deployment/docker/prod/bin/install ${TARGETOS} ${TARGETARCH}
FROM alpine:3.16 as runner