mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +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"]
|
|
|