diff --git a/Dockerfile b/Dockerfile index b9828c18e555384ac57e409e3d8aa073053f9592..38a382b1078a336367e57de450ba612c32cded5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ # syntax = docker/dockerfile:1.3 -# Golang -FROM golang:1.19 as build +FROM golang:1.19 AS build WORKDIR /go/src/github.com/mccutchen/go-httpbin @@ -9,10 +8,10 @@ COPY . . RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \ make build buildtests -# distroless FROM gcr.io/distroless/base COPY --from=build /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/ EXPOSE 8080 + ENTRYPOINT ["/bin/go-httpbin"]