tuxman/deployments/docker/Dockerfile

17 lines
339 B
Text
Raw Normal View History

2023-06-13 03:47:43 +00:00
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
RUN adduser -DH block
USER block
COPY --from=builder /app/target/release/rollback /rollback
COPY client /client
ENTRYPOINT ["/sbin/tini", "--", "/rollback"]