mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +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
|
||||
|
||||
WORKDIR /agate
|
||||
RUN apk --no-cache add libc-dev
|
||||
|
||||
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 .
|
||||
RUN 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue