fix: add /tmp directory to Docker image to fix data export

Fixes #2222
This commit is contained in:
kolaente 2026-03-02 17:14:55 +01:00
parent 26c0f71b6c
commit 84d563c51b
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,8 @@ RUN export PATH=$PATH:$GOPATH/bin && \
mage build:clean && \
mage release:xgo "${TARGETOS}/${TARGETARCH}/${TARGETVARIANT}"
RUN mkdir -p /tmp && chmod 1777 /tmp
# ┬─┐┬ ┐┌┐┐┌┐┐┬─┐┬─┐
# │┬┘│ │││││││├─ │┬┘
# ┘└┘┘─┘┘└┘┘└┘┴─┘┘└┘
@ -48,6 +50,9 @@ LABEL org.opencontainers.image.title='Vikunja'
WORKDIR /app/vikunja
ENTRYPOINT [ "/app/vikunja/vikunja" ]
EXPOSE 3456
COPY --from=apibuilder /tmp /tmp
USER 1000
ENV VIKUNJA_SERVICE_ROOTPATH=/app/vikunja/