Files
wehub-resource-sync bb087aad19
CI / format (push) Failing after 2s
CI / packaging (push) Failing after 0s
CI / test (push) Failing after 3s
chore: import upstream snapshot with attribution
2026-07-13 11:58:56 +08:00

25 lines
426 B
Docker

FROM rust:1.83 AS builder
WORKDIR /app
# Compile Dependencies
COPY Cargo.* ./
RUN mkdir src && echo 'fn main() { panic!("Dummy Image Called!") }' > ./src/main.rs
RUN cargo build --release
# Add Source
COPY src ./src
# Break cargo cache
RUN touch ./src/main.rs
# Compile
RUN cargo build --release
FROM debian:bookworm AS runtime
COPY --from=builder /app/target/release/server /server
EXPOSE 3000
ENTRYPOINT ["/server"]