Skip to content

Commit

Permalink
chore: use debian:slim as the base image
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 24, 2024
1 parent 2288b85 commit 4def07e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ ENV CGO_ENABLED=0

RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build

FROM gcr.io/distroless/base-debian11 AS image
FROM debian:slim AS image

COPY --from=build /src/bin/kcl /usr/local/bin/kcl
# Show KCL version
RUN /usr/local/bin/kcl version
RUN kcl version
# Enable kcl works fine
RUN echo 'a=1' | /usr/local/bin/kcl run -
RUN echo 'a=1' | kcl run -
# Install Git Dependency
RUN apt-get update && apt-get install git -y && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install git -y
# The reason for doing this below is to prevent the
# container from not having write permissions.
ENV KCL_LIB_HOME=/tmp
Expand Down

0 comments on commit 4def07e

Please sign in to comment.