1
1
Fork 0
mirror of https://github.com/mcuadros/ascode synced 2024-05-09 17:16:16 +02:00
ascode/Dockerfile

13 lines
389 B
Docker
Raw Permalink Normal View History

FROM golang:1.14.0-alpine AS builder
2020-03-27 18:33:10 +01:00
RUN apk --no-cache add make
WORKDIR $GOPATH/src/github.com/mcuadros/ascode
COPY . .
2020-03-27 18:33:10 +01:00
RUN GO111MODULE=on CGO_ENABLED=0 GOPROXY="https://proxy.golang.org" \
go build \
-ldflags "$(make goldflags)" \
-o /bin/ascode .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /bin/ascode /bin/ascode
CMD ["ascode"]