neon_arch commited on
Commit
aab1269
โ€ข
1 Parent(s): 1893e85

๐Ÿ› ๏ธ fix: changing from relative to absolute paths and changing the paths to be copied to and from

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM rust:latest AS chef
3
  # it will be cached from the second build onwards
4
  RUN cargo install cargo-chef
5
 
6
- WORKDIR app
7
 
8
  FROM chef AS planner
9
  COPY . .
@@ -20,7 +20,7 @@ RUN cargo install --path .
20
 
21
  # We do not need the Rust toolchain to run the binary!
22
  FROM gcr.io/distroless/cc-debian11
23
- COPY --from=builder ./public/ ./public/
24
- COPY --from=builder ./websurfx/ ./websurfx/
25
  COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
26
  CMD ["websurfx"]
 
3
  # it will be cached from the second build onwards
4
  RUN cargo install cargo-chef
5
 
6
+ WORKDIR /app
7
 
8
  FROM chef AS planner
9
  COPY . .
 
20
 
21
  # We do not need the Rust toolchain to run the binary!
22
  FROM gcr.io/distroless/cc-debian11
23
+ COPY --from=builder /app/public/ /opt/websurfx/public/
24
+ COPY --from=builder /app/websurfx/config.lua /etc/xdg/websurfx/config.lua
25
  COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
26
  CMD ["websurfx"]