From 1dd14547b0ff72eb13768e995bfb26462ff62758 Mon Sep 17 00:00:00 2001 From: x70b1 <x70b1@users.noreply.github.com> Date: Thu, 13 Oct 2022 13:22:37 +0200 Subject: [PATCH] fix dockerfile style --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9828c1..38a382b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ # 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 @@ -9,10 +8,10 @@ COPY . . RUN --mount=type=cache,id=gobuild,target=/root/.cache/go-build \ make build buildtests -# distroless FROM gcr.io/distroless/base COPY --from=build /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/ EXPOSE 8080 + ENTRYPOINT ["/bin/go-httpbin"] -- GitLab