mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
16 lines
409 B
Docker
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"]
|
|
|