FROM rust:latest as build WORKDIR /app COPY . . RUN cargo build --release FROM debian:latest RUN apt-get update && apt-get install -y tor COPY --from=build /app/target/release/re-sol /usr/local/bin/ COPY --from=build /app/web /app/web WORKDIR /app CMD tor & re-sol