0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 12:28:21 -05:00

🛠️ fix: changing from relative to absolute paths and changing the paths to be copied to and from

This commit is contained in:
neon_arch 2023-07-10 19:27:40 +03:00
parent 1893e85365
commit aab12695f0

View File

@ -3,7 +3,7 @@ FROM rust:latest AS chef
# it will be cached from the second build onwards
RUN cargo install cargo-chef
WORKDIR app
WORKDIR /app
FROM chef AS planner
COPY . .
@ -20,7 +20,7 @@ RUN cargo install --path .
# We do not need the Rust toolchain to run the binary!
FROM gcr.io/distroless/cc-debian11
COPY --from=builder ./public/ ./public/
COPY --from=builder ./websurfx/ ./websurfx/
COPY --from=builder /app/public/ /opt/websurfx/public/
COPY --from=builder /app/websurfx/config.lua /etc/xdg/websurfx/config.lua
COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
CMD ["websurfx"]