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
|
COPY --from=builder /routewatch-source.tar.zst /app/source/routewatch-source.tar.zst
|
||||||
|
|
||||||
# Set ownership
|
# 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
|
USER routewatch
|
||||||
|
|
||||||
# Default state directory
|
ENV XDG_DATA_HOME=/var/lib
|
||||||
ENV ROUTEWATCH_STATE_DIR=/var/lib/routewatch
|
|
||||||
|
|
||||||
# Expose HTTP port
|
# Expose HTTP port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user