docker: Fix build on arm64

This commit is contained in:
nemunaire 2023-05-12 14:34:51 +02:00
parent 34889a949f
commit d4f69059bf
3 changed files with 4 additions and 5 deletions

View File

@ -459,7 +459,6 @@ steps:
- name: docker admin
image: plugins/docker
failure: ignore
settings:
username:
from_secret: docker_username
@ -565,7 +564,6 @@ steps:
- name: docker repochecker
image: plugins/docker
failure: ignore
settings:
username:
from_secret: docker_username

View File

@ -4,14 +4,15 @@ RUN apk add --no-cache git
WORKDIR /go/src/srs.epita.fr/fic-server/
RUN apk add --no-cache binutils-gold build-base
COPY go.mod go.sum ./
COPY settings settings/
COPY libfic ./libfic/
COPY admin ./admin/
COPY repochecker ./repochecker/
RUN apk add --no-cache build-base git && \
go get -d -v ./admin && \
RUN go get -d -v ./admin && \
go build -v -o admin/admin ./admin && \
go build -v -buildmode=plugin -o repochecker/epita-rules.so ./repochecker/epita && \
go build -v -buildmode=plugin -o repochecker/file-inspector.so ./repochecker/file-inspector && \

View File

@ -4,7 +4,7 @@ RUN apk add --no-cache git
WORKDIR /go/src/srs.epita.fr/fic-server/
RUN apk add --no-cache build-base
RUN apk add --no-cache binutils-gold build-base
COPY go.mod go.sum ./
COPY settings settings/