From dfdd16294365a603d39914734891691083b3cc66 Mon Sep 17 00:00:00 2001 From: Keepers Date: Mon, 26 Sep 2022 19:21:26 -0600 Subject: [PATCH] quick fix on image/user pair for images (#961) ## Type of change - [x] :bug: Bugfix ## Test Plan - [x] :muscle: Manual --- build/Dockerfile | 4 ++-- docker/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 272d928f0..03c241f1c 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -3,7 +3,7 @@ # This dockerfile is configured to be run by the /corso/build/build-container.sh # script. Using docker to build this file directly will fail. -FROM alpine:3.16 +FROM ubuntu:latest WORKDIR / @@ -11,6 +11,6 @@ ARG TARGETOS ARG TARGETARCH COPY ./bin/${TARGETOS}-${TARGETARCH}/corso ./ -USER nonroot:nonroot +USER nobody ENTRYPOINT ["/corso"] diff --git a/docker/Dockerfile b/docker/Dockerfile index 3261e7bf6..403bd4420 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,10 +20,10 @@ ARG TARGETARCH RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /corso . ## Deploy -FROM alpine:3.16 +FROM ubuntu:latest COPY --from=build /corso / -USER nonroot:nonroot +USER nobody ENTRYPOINT ["/corso"]