pepebot/pepeservice/Dockerfile

14 lines
409 B
Docker
Raw Normal View History

2021-09-08 22:19:05 +02:00
# syntax=docker/dockerfile:1
2022-05-11 13:45:31 +02:00
FROM golang:1.17-alpine AS builder
2021-09-08 22:19:05 +02:00
WORKDIR /go/src/quenten.nl/pepeservice
COPY . ./
2022-05-11 12:24:31 +02:00
WORKDIR /go/src/quenten.nl/pepeservice/pepeservice
2021-09-08 22:19:05 +02:00
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
2022-05-11 12:24:31 +02:00
COPY --from=builder /go/src/quenten.nl/pepeservice/pepeservice/app .
2021-09-08 22:19:05 +02:00
CMD ["./app"]