agate/Dockerfile
Gerald Wu 77892008db Update Dockerfile
Co-authored-by: JP Hastings-Edrei <hello@byjp.me>
2024-11-27 18:45:32 -08:00

16 lines
409 B
Docker

FROM docker.io/library/rust:alpine AS builder
WORKDIR /agate
COPY src src
COPY Cargo.toml .
COPY Cargo.lock .
COPY Cross.toml .
RUN apk --no-cache add libc-dev && \
cargo install --target x86_64-unknown-linux-musl --path .
FROM docker.io/library/alpine:latest
COPY --from=builder /usr/local/cargo/bin/agate /usr/bin/agate
WORKDIR /app
COPY tools/docker/start.sh /app
ENTRYPOINT ["/bin/sh", "start.sh"]