Skip to content
Snippets Groups Projects
Commit 1dd14547 authored by x70b1's avatar x70b1
Browse files

fix dockerfile style

parent e3b14138
No related branches found
No related tags found
No related merge requests found
# syntax = docker/dockerfile:1.3 # 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 WORKDIR /go/src/github.com/mccutchen/go-httpbin
...@@ -9,10 +8,10 @@ COPY . . ...@@ -9,10 +8,10 @@ COPY . .
RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \ RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \
make build buildtests make build buildtests
# distroless
FROM gcr.io/distroless/base FROM gcr.io/distroless/base
COPY --from=build /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 EXPOSE 8080
ENTRYPOINT ["/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