mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-01 21:02:33 +00:00
Dockerfile: Freeze builder image versions
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user