set state dir properly in container
This commit is contained in:
parent
aebdd1b23e
commit
a5f5dbafcf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user