Skip to content

Commit

Permalink
ci: install build-base in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Mar 10, 2023
1 parent 423c3e0 commit 3d20f52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/prod/buildx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d20f52

Please sign in to comment.