bucket/deployments/docker/Dockerfile
2023-07-08 23:30:33 -04:00

14 lines
305 B
Docker

FROM rust:alpine AS builder
COPY Cargo.toml Cargo.lock /app/
COPY src /app/src
WORKDIR /app
RUN apk add musl-dev
RUN cargo build --release
FROM alpine
RUN apk add --no-cache tini
COPY --from=builder /app/target/release/webring /webring
COPY public /public
ENTRYPOINT [ "/sbin/tini", "--", "/webring" ]