From b884d9433a059acc885813ae3f37217a56d3b668 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 7 Mar 2025 22:51:24 +0100 Subject: [PATCH] make sure /tmp exists --- Dockerfile.webui | 3 +++ services/actions/genimage_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.webui b/Dockerfile.webui index 1af650f..dd8ad73 100644 --- a/Dockerfile.webui +++ b/Dockerfile.webui @@ -9,6 +9,7 @@ ENV LDFLAGS=$LDFLAGS CGO_ENABLED=0 # Install git RUN apk add --no-cache git +RUN rm -rf /tmp/* /var/cache/apk/* # Set the working directory WORKDIR /work @@ -30,6 +31,8 @@ FROM scratch # Copy the webui binary from the builder stage to the final image COPY --from=builder /work/localagent /localagent COPY --from=builder /etc/ssl/ /etc/ssl/ +COPY --from=builder /tmp /tmp + # Define the command that will be run when the container is started ENTRYPOINT ["/localagent"] diff --git a/services/actions/genimage_test.go b/services/actions/genimage_test.go index 9aef316..f0af8bf 100644 --- a/services/actions/genimage_test.go +++ b/services/actions/genimage_test.go @@ -22,7 +22,7 @@ var _ = Describe("GenImageAction", func() { BeforeEach(func() { ctx = context.Background() apiKey := os.Getenv("OPENAI_API_KEY") - apiURL := os.Getenv("OPENAI_LOCALAGENT_API_URL") + apiURL := os.Getenv("OPENAI_API_URL") testModel := os.Getenv("OPENAI_MODEL") if apiURL == "" { Skip("OPENAI_API_URL must be set")