protodash/Dockerfile

11 строки
240 B
Docker

FROM golang:latest AS build
WORKDIR /go/src/app
ADD . /go/src/app
RUN go get -d -v ./...
RUN go build -o /go/bin/app
FROM gcr.io/distroless/base
COPY --from=build /go/bin/app /go/src/app/config.yml /go/src/app/index.gohtml /
CMD ["/app"]