mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 01:49:11 +00:00
1.1.0
This commit is contained in:
parent
3a34f6c1a3
commit
4306b99634
10 changed files with 105 additions and 41 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,17 +1,24 @@
|
|||
FROM rust:latest AS builder
|
||||
FROM rust:bookworm AS builder
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl && apt update && apt install -y musl-tools musl-dev
|
||||
RUN apt-get update && \
|
||||
apt install -y musl-tools musl-dev libssl-dev clang mold
|
||||
|
||||
# RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
|
||||
RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/bin
|
||||
# RUN cargo install cargo-nextest --locked
|
||||
|
||||
WORKDIR /ark-invest-api-rust
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl && rustup update && cargo update
|
||||
|
||||
RUN --mount=type=cache,target=/usr/local/cargo,from=rust,source=/usr/local/cargo \
|
||||
--mount=type=cache,target=./target \
|
||||
cargo build --target x86_64-unknown-linux-musl --release && \
|
||||
cp ./target/x86_64-unknown-linux-musl/release/ark-invest-api-rust .
|
||||
cp ./target/target/x86_64-unknown-linux-musl/release/ark-invest-api-rust .
|
||||
|
||||
FROM alpine:latest
|
||||
FROM alpine:latest AS main
|
||||
|
||||
WORKDIR /ark-invest-api-rust
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue