make sure /tmp exists
This commit is contained in:
@@ -9,6 +9,7 @@ ENV LDFLAGS=$LDFLAGS CGO_ENABLED=0
|
|||||||
|
|
||||||
# Install git
|
# Install git
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
|
RUN rm -rf /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
@@ -30,6 +31,8 @@ FROM scratch
|
|||||||
# Copy the webui binary from the builder stage to the final image
|
# Copy the webui binary from the builder stage to the final image
|
||||||
COPY --from=builder /work/localagent /localagent
|
COPY --from=builder /work/localagent /localagent
|
||||||
COPY --from=builder /etc/ssl/ /etc/ssl/
|
COPY --from=builder /etc/ssl/ /etc/ssl/
|
||||||
|
COPY --from=builder /tmp /tmp
|
||||||
|
|
||||||
|
|
||||||
# Define the command that will be run when the container is started
|
# Define the command that will be run when the container is started
|
||||||
ENTRYPOINT ["/localagent"]
|
ENTRYPOINT ["/localagent"]
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ var _ = Describe("GenImageAction", func() {
|
|||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
ctx = context.Background()
|
ctx = context.Background()
|
||||||
apiKey := os.Getenv("OPENAI_API_KEY")
|
apiKey := os.Getenv("OPENAI_API_KEY")
|
||||||
apiURL := os.Getenv("OPENAI_LOCALAGENT_API_URL")
|
apiURL := os.Getenv("OPENAI_API_URL")
|
||||||
testModel := os.Getenv("OPENAI_MODEL")
|
testModel := os.Getenv("OPENAI_MODEL")
|
||||||
if apiURL == "" {
|
if apiURL == "" {
|
||||||
Skip("OPENAI_API_URL must be set")
|
Skip("OPENAI_API_URL must be set")
|
||||||
|
|||||||
Reference in New Issue
Block a user