Dockerfile: Freeze builder image versions

This commit is contained in:
Manuel Rüger
2023-02-14 15:08:01 +01:00
parent e754bf17a0
commit ca2dbe5fc4
3 changed files with 9 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
FROM golang:latest
FROM golang:1.19.6 as builder
ENV GOPATH="/go"
WORKDIR /go/src/github.com/kovetskiy/mark
COPY / .
RUN make get
RUN make build
RUN make get \
&& make build
FROM alpine:latest
RUN apk --no-cache add ca-certificates bash git
COPY --from=0 /go/src/github.com/kovetskiy/mark/mark /bin/
FROM alpine:3.17
RUN apk --no-cache add ca-certificates bash sed git
COPY --from=builder /go/src/github.com/kovetskiy/mark/mark /bin/
WORKDIR /docs