mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
Update Dockerfile
Co-authored-by: JP Hastings-Edrei <hello@byjp.me>
This commit is contained in:
parent
2f01322bc9
commit
3a69d0418f
1 changed files with 3 additions and 2 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
FROM docker.io/library/rust:alpine AS builder
|
FROM docker.io/library/rust:alpine AS builder
|
||||||
|
|
||||||
WORKDIR /agate
|
WORKDIR /agate
|
||||||
|
RUN apk --no-cache add libc-dev
|
||||||
|
|
||||||
COPY src src
|
COPY src src
|
||||||
COPY Cargo.toml .
|
COPY Cargo.toml .
|
||||||
COPY Cargo.lock .
|
COPY Cargo.lock .
|
||||||
COPY Cross.toml .
|
COPY Cross.toml .
|
||||||
RUN apk --no-cache add libc-dev && \
|
RUN cargo install --target x86_64-unknown-linux-musl --path .
|
||||||
cargo install --target x86_64-unknown-linux-musl --path .
|
|
||||||
|
|
||||||
FROM docker.io/library/alpine:latest
|
FROM docker.io/library/alpine:latest
|
||||||
COPY --from=builder /usr/local/cargo/bin/agate /usr/bin/agate
|
COPY --from=builder /usr/local/cargo/bin/agate /usr/bin/agate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue