docker-db-backup/Dockerfile

17 lines
419 B
Docker
Raw Normal View History

2023-06-05 17:07:15 +00:00
FROM golang:1-alpine AS build-env
# Setup repo
COPY . ${GOPATH}/src/kolaente.dev/konrad/docker-db-backup
WORKDIR ${GOPATH}/src/kolaente.dev/konrad/docker-db-backup
2023-06-05 17:07:15 +00:00
RUN apk --no-cache add ca-certificates
2021-12-05 11:44:47 +00:00
RUN CGO_ENABLED=0 go build .
2021-12-05 11:44:47 +00:00
FROM scratch
2023-06-05 17:07:15 +00:00
COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build-env /go/src/kolaente.dev/konrad/docker-db-backup /
CMD ["/docker-db-backup"]