Skip to content
Snippets Groups Projects
Select Git revision
  • c2c3f90b0f647846aa3b15625119659e06b0be57
  • main default protected
2 results

Dockerfile

Blame
  • Dockerfile 363 B
    FROM golang:alpine as go_builder
    
    RUN apk add --no-cache curl
    RUN curl https://glide.sh/get | sh
    
    WORKDIR /go/src/app
    COPY glide.* ./
    RUN glide install
    COPY *.go ./
    RUN CGO_ENABLED=0 GOOS=linux go build -a app .
    
    FROM scratch
    COPY --from=go_builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
    COPY --from=go_builder /go/src/app/app /app
    ENTRYPOINT ["/app"]