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.
15 lines
381 B
Docker
15 lines
381 B
Docker
|
3 months ago
|
FROM golang:1.15
|
||
|
|
|
||
|
|
WORKDIR /go/src/github.com/mccutchen/go-httpbin
|
||
|
|
|
||
|
|
# Manually implement the subset of `make deps` we need to build the image
|
||
|
|
RUN cd /tmp && go get -u github.com/kevinburke/go-bindata/...
|
||
|
|
|
||
|
|
COPY . .
|
||
|
|
RUN make build buildtests
|
||
|
|
|
||
|
|
FROM gcr.io/distroless/base
|
||
|
|
COPY --from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
|
||
|
|
EXPOSE 8080
|
||
|
|
CMD ["/bin/go-httpbin"]
|