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] 🌻 Feature

## Issue(s)

* #573 

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Keepers 2022-09-02 16:46:44 -06:00 committed by GitHub
parent 1f8c3cdb11
commit e5ca159ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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 /

View File

@ -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 /