pepebot/pepeservice/Dockerfile
DutchEllie 824aa4f81a
All checks were successful
continuous-integration/drone/push Build is passing
On good faith we hope
2022-05-11 12:24:31 +02:00

14 lines
402 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.17 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 .
CMD ["./app"]