Skip to content
Snippets Groups Projects
Select Git revision
  • 3430fe8c05843e4a053b0ad624ec72018504f635
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
24 results

Dockerfile

Blame
  • user avatar
    x70b1 authored
    3430fe8c
    History
    Dockerfile 358 B
    # syntax = docker/dockerfile:1.3
    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
    
    FROM gcr.io/distroless/base
    
    COPY --from=build /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/
    
    EXPOSE 8080
    CMD ["/bin/go-httpbin"]