You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
408 B

  1. ARG TARGET=buster
  2. FROM rust:1-$TARGET as builder
  3. WORKDIR /code
  4. COPY . .
  5. RUN cargo build --release
  6. FROM debian:$TARGET-slim
  7. RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
  8. COPY --from=builder /code/target/release/acmed /usr/local/bin/acmed
  9. COPY --from=builder /code/target/release/tacd /usr/local/bin/tacd
  10. CMD ["/usr/local/bin/acmed", "-f", "--log-stderr"]