Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update golang to 1.19 #84

Merged
merged 4 commits into from
Oct 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# syntax = docker/dockerfile:1.3
FROM golang:1.18
# Golang
x70b1 marked this conversation as resolved.
Show resolved Hide resolved
FROM golang:1.19 as build
x70b1 marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR /go/src/github.com/mccutchen/go-httpbin

COPY . .

RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \
make build buildtests

# distroless
x70b1 marked this conversation as resolved.
Show resolved Hide resolved
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"]
x70b1 marked this conversation as resolved.
Show resolved Hide resolved