On good faith we hope
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
545193a90e
commit
824aa4f81a
|
@ -3,11 +3,12 @@ FROM golang:1.17 AS builder
|
||||||
WORKDIR /go/src/quenten.nl/pepeservice
|
WORKDIR /go/src/quenten.nl/pepeservice
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
WORKDIR /go/src/quenten.nl/pepeservice/pepeservice
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /go/src/quenten.nl/pepeservice/app .
|
COPY --from=builder /go/src/quenten.nl/pepeservice/pepeservice/app .
|
||||||
CMD ["./app"]
|
CMD ["./app"]
|
Loading…
Reference in New Issue