Optimizations
continuous-integration/drone/push Build was killed Details

This commit is contained in:
DutchEllie 2022-05-11 14:27:12 +02:00
parent 955ebad888
commit 4c7659bd37
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
2 changed files with 12 additions and 8 deletions

View File

@ -0,0 +1,4 @@
.drone.yml
docker-ignore.yml
LICENCE
README.md

View File

@ -1,14 +1,14 @@
# syntax=docker/dockerfile:1
FROM golang:1.17-alpine AS builder
WORKDIR /go/src/quenten.nl/pepeservice
COPY . ./
WORKDIR /go/src/quenten.nl/pepeservice/pepeservice
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./
#FROM golang:1.17-alpine AS builder
#WORKDIR /go/src/quenten.nl/pepeservice
#
#COPY . ./
#WORKDIR /go/src/quenten.nl/pepeservice/pepeservice
#RUN go mod download
#RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /go/src/quenten.nl/pepeservice/pepeservice/app .
COPY /build/app .
CMD ["./app"]