mirror of
https://github.com/NexVeridian/ark-invest-api-rust-data.git
synced 2025-09-02 01:49:12 +00:00
0.1.0
This commit is contained in:
commit
7e12fc1e65
11 changed files with 647 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM rust:latest AS builder
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl && apt update && apt install -y musl-tools musl-dev
|
||||
|
||||
WORKDIR /ark-invest-api-rust-data
|
||||
|
||||
COPY . .
|
||||
|
||||
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-data .
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /ark-invest-api-rust-data
|
||||
|
||||
COPY --from=builder ark-invest-api-rust-data/ark-invest-api-rust-data .
|
||||
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["./ark-invest-api-rust-data"]
|
Loading…
Add table
Add a link
Reference in a new issue