From e5ca159ad7c2bd2cf4a8c6524505a1f056887271 Mon Sep 17 00:00:00 2001 From: Keepers Date: Fri, 2 Sep 2022 16:46:44 -0600 Subject: [PATCH] use alpine for dockerfile base images (#758) ## Description Uses alpine in the base docker images, to gain access to a shell within corso containers. ## Type of change - [x] :sunflower: Feature ## Issue(s) * #573 ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- build/Dockerfile | 3 +-- docker/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index d33c31381..272d928f0 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -3,8 +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 gcr.io/distroless/base-debian10 -# FROM gcr.io/distroless/base:debug +FROM alpine:3.16 WORKDIR / diff --git a/docker/Dockerfile b/docker/Dockerfile index d0ebfeb7e..3261e7bf6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,7 +20,7 @@ ARG TARGETARCH RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /corso . ## Deploy -FROM gcr.io/distroless/base-debian10 +FROM alpine:3.16 COPY --from=build /corso /