FROM rust:alpine as builder RUN mkdir /app WORKDIR /app RUN apk update && apk add openssl-dev musl-dev COPY Cargo.toml /app COPY Cargo.lock /app RUN cargo update COPY src /app/src COPY templates /app/templates RUN cargo build --release --target x86_64-unknown-linux-musl FROM scratch COPY --from=builder /app/target/release/paste-frontend / CMD ["./paste-frontend"]