make sure /tmp exists

This commit is contained in:
Ettore Di Giacinto
2025-03-07 22:51:24 +01:00
parent f2e7010297
commit b884d9433a
2 changed files with 4 additions and 1 deletions

View File

@@ -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"]