1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00
ascode/Dockerfile
2020-03-17 18:30:53 +01:00

9 lines
306 B
Docker

FROM golang:1.14.0-alpine AS builder
WORKDIR $GOPATH/src/github.com/mcuadros/ascode
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 GOPROXY="https://proxy.golang.org" go build -o /bin/ascode .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /bin/ascode /bin/ascode
CMD ["ascode"]