docker: Fix build on arm64
This commit is contained in:
parent
34889a949f
commit
d4f69059bf
@ -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
|
||||
|
@ -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 && \
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user