Skip to content
Snippets Groups Projects
Unverified Commit e3b14138 authored by x70b1's avatar x70b1 Committed by GitHub
Browse files

update golang, replace CMD

parent 67402304
No related branches found
No related tags found
No related merge requests found
# syntax = docker/dockerfile:1.3
FROM golang:1.18
# Golang
FROM golang:1.19 as build
WORKDIR /go/src/github.com/mccutchen/go-httpbin
COPY . .
RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \
make build buildtests
# distroless
FROM gcr.io/distroless/base
COPY --from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
COPY --from=build /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
EXPOSE 8080
CMD ["/bin/go-httpbin"]
ENTRYPOINT ["/bin/go-httpbin"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment