0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04:00

feat: olumes for docker deployment to make editing config files easier

This commit is contained in:
Evan Yang 2023-09-27 10:20:56 -07:00
parent 4243db9d49
commit d900baddab
2 changed files with 4 additions and 3 deletions

View File

@ -21,8 +21,6 @@ RUN cargo install --path .
# We do not need the Rust toolchain to run the binary!
FROM gcr.io/distroless/cc-debian12
COPY --from=builder /app/public/ /opt/websurfx/public/
COPY --from=builder /app/websurfx/config.lua /etc/xdg/websurfx/config.lua
COPY --from=builder /app/websurfx/allowlist.txt /etc/xdg/websurfx/allowlist.txt
COPY --from=builder /app/websurfx/blocklist.txt /etc/xdg/websurfx/blocklist.txt
VOLUME ["/etc/xdg/websurfx/"]
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
CMD ["websurfx"]

View File

@ -10,6 +10,9 @@ services:
- redis
links:
- redis
volumes:
- ./websurfx/:/etc/xdg/websurfx/
- ./public/:/opt/websurfx/public/
redis:
image: redis:latest
ports: