From 2288b859a139214170b9c6e6ef197cbdb2d86aaf Mon Sep 17 00:00:00 2001 From: Peefy Date: Thu, 24 Oct 2024 20:11:24 +0800 Subject: [PATCH] chore: update kcl path Signed-off-by: Peefy --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0136c2..d8e8d37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /src ARG TARGETOS ARG TARGETARCH -ENV CGO_ENABLED 0 +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 @@ -17,15 +17,15 @@ FROM gcr.io/distroless/base-debian11 AS image COPY --from=build /src/bin/kcl /usr/local/bin/kcl # Show KCL version -RUN kcl version +RUN /usr/local/bin/kcl version # Enable kcl works fine -RUN echo 'a=1' | kcl run - +RUN echo 'a=1' | /usr/local/bin/kcl run - # Install Git Dependency RUN apt-get update && apt-get install git -y && rm -rf /var/lib/apt/lists/* # The reason for doing this below is to prevent the # container from not having write permissions. -ENV KCL_LIB_HOME /tmp -ENV KCL_PKG_PATH /tmp -ENV KCL_CACHE_PATH /tmp -ENV LANG en_US.utf8 +ENV KCL_LIB_HOME=/tmp +ENV KCL_PKG_PATH=/tmp +ENV KCL_CACHE_PATH=/tmp +ENV LANG=en_US.utf8 USER nonroot:nonroot