You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
FROM golang:1.13 AS builder
|
|
|
|
WORKDIR /compose/hello-docker
|
|
COPY main.go main.go
|
|
RUN CGO_ENABLED=0 go build -o backend main.go
|
|
|
|
FROM scratch
|
|
COPY --from=builder /compose/hello-docker/backend /usr/local/bin/backend
|
|
CMD ["/usr/local/bin/backend"]
|
|
|
|
|