Spaces:
Runtime error
Runtime error
Evan Yang
commited on
Commit
•
d900bad
1
Parent(s):
4243db9
feat: olumes for docker deployment to make editing config files easier
Browse files- Dockerfile +1 -3
- docker-compose.yml +3 -0
Dockerfile
CHANGED
@@ -21,8 +21,6 @@ RUN cargo install --path .
|
|
21 |
# We do not need the Rust toolchain to run the binary!
|
22 |
FROM gcr.io/distroless/cc-debian12
|
23 |
COPY --from=builder /app/public/ /opt/websurfx/public/
|
24 |
-
|
25 |
-
COPY --from=builder /app/websurfx/allowlist.txt /etc/xdg/websurfx/allowlist.txt
|
26 |
-
COPY --from=builder /app/websurfx/blocklist.txt /etc/xdg/websurfx/blocklist.txt
|
27 |
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
|
28 |
CMD ["websurfx"]
|
|
|
21 |
# We do not need the Rust toolchain to run the binary!
|
22 |
FROM gcr.io/distroless/cc-debian12
|
23 |
COPY --from=builder /app/public/ /opt/websurfx/public/
|
24 |
+
VOLUME ["/etc/xdg/websurfx/"]
|
|
|
|
|
25 |
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
|
26 |
CMD ["websurfx"]
|
docker-compose.yml
CHANGED
@@ -10,6 +10,9 @@ services:
|
|
10 |
- redis
|
11 |
links:
|
12 |
- redis
|
|
|
|
|
|
|
13 |
redis:
|
14 |
image: redis:latest
|
15 |
ports:
|
|
|
10 |
- redis
|
11 |
links:
|
12 |
- redis
|
13 |
+
volumes:
|
14 |
+
- ./websurfx/:/etc/xdg/websurfx/
|
15 |
+
- ./public/:/opt/websurfx/public/
|
16 |
redis:
|
17 |
image: redis:latest
|
18 |
ports:
|