Pass hadolint
This commit is contained in:
parent
8a6d480d17
commit
6999b4e728
7 changed files with 56 additions and 56 deletions
|
|
@ -1,18 +1,18 @@
|
|||
FROM golang:1.16.7-alpine as gobuild
|
||||
FROM golang:1-alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/
|
||||
|
||||
ADD go.mod go.sum ./
|
||||
ADD libfic ./libfic/
|
||||
ADD remote/scores-sync-zqds ./remote/scores-sync-zqds/
|
||||
COPY go.mod go.sum ./
|
||||
COPY libfic ./libfic/
|
||||
COPY remote/scores-sync-zqds ./remote/scores-sync-zqds/
|
||||
|
||||
RUN go get -d -v ./remote/scores-sync-zqds
|
||||
RUN go build -v -o ./scores-sync-zqds ./remote/scores-sync-zqds
|
||||
RUN go get -d -v ./remote/scores-sync-zqds && \
|
||||
go build -v -o ./scores-sync-zqds ./remote/scores-sync-zqds
|
||||
|
||||
|
||||
FROM alpine
|
||||
FROM alpine:3.14
|
||||
|
||||
RUN apk add --no-cache openssl ca-certificates
|
||||
|
||||
|
|
|
|||
Reference in a new issue