Spaces:
Running
Running
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- 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
|
| 24 |
-
COPY --from=builder
|
| 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"]
|