set state dir properly in container

This commit is contained in:
Jeffrey Paul 2025-12-31 15:58:35 -08:00
parent aebdd1b23e
commit a5f5dbafcf

View File

@ -49,12 +49,12 @@ COPY --from=builder /routewatch /app/routewatch
COPY --from=builder /routewatch-source.tar.zst /app/source/routewatch-source.tar.zst
# Set ownership
RUN chown -R routewatch:routewatch /app
RUN mkdir -p /var/lib/berlin.sneak.app.routewatch ; \
chown -R routewatch:routewatch /app /var/lib/*routewatch
USER routewatch
# Default state directory
ENV ROUTEWATCH_STATE_DIR=/var/lib/routewatch
ENV XDG_DATA_HOME=/var/lib
# Expose HTTP port
EXPOSE 8080