-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use distroless Debian image as base
I managed to workaround building a distroless image with Earthly, and this produces a slim 20MB image. :) It also adds a volume for Disco data. I'll document a recommended workflow with Podman shortly. Part of #9
Showing
2 changed files
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM gcr.io/distroless/static-debian12 | ||
|
||
# NOTE: This file is meant to be used with Earthly and can't be used on its own | ||
# to build Disco images. | ||
|
||
USER nonroot | ||
|
||
ENV DISCO_DATA_DIR=/opt/disco | ||
|
||
WORKDIR $DISCO_DATA_DIR | ||
|
||
VOLUME $DISCO_DATA_DIR | ||
|
||
EXPOSE 2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters