Skip to content
Snippets Groups Projects
Verified Commit b491c9f3 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Implement minimal docker builds

parent 80722164
No related branches found
No related tags found
No related merge requests found
FROM golang
FROM golang as builder
RUN curl https://glide.sh/get | sh
WORKDIR /go/src/app
COPY . .
COPY glide.lock glide.yaml ./
RUN glide install
RUN go build -a app .
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a app .
ENTRYPOINT ["./app"]
\ No newline at end of file
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/app/app /app
ENTRYPOINT ["/app"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment