Browse Source

Added alpine and debian Dockerfile manifests

master
Drew Short 3 years ago
parent
commit
5cfa69083f
  1. 17
      build/package/alpine.Dockerfile
  2. 17
      build/package/debian.Dockerfile

17
build/package/alpine.Dockerfile

@ -0,0 +1,17 @@
FROM golang:1.17-alpine3.13 as builder
ENV GO111MODULE=on
WORKDIR /go/src/app
COPY .. .
RUN go build -v
FROM alpine:3.13 AS server
WORKDIR /app
COPY --from=builder /go/src/app/pinned-package-updater .
ENTRYPOINT ["/app/pinned-package-updater"]
CMD ["serve"]

17
build/package/debian.Dockerfile

@ -0,0 +1,17 @@
FROM golang:1.17-buster as builder
ENV GO111MODULE=on
WORKDIR /go/src/app
COPY .. .
RUN go build -v
FROM debian:buster AS server
WORKDIR /app
COPY --from=builder /go/src/app/pinned-package-updater .
ENTRYPOINT ["/app/pinned-package-updater"]
CMD ["serve"]
Loading…
Cancel
Save