dockerfile, modify it when using

This commit is contained in:
2026-04-23 19:42:09 +08:00
parent e00b25b6c7
commit e019948017
4 changed files with 87 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM rust:slim-bookworm AS builder
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y musl-tools pkg-config libssl-dev
RUN rustup target add x86_64-unknown-linux-musl
COPY . .
RUN cargo build --target x86_64-unknown-linux-musl --release --bin client
FROM alpine:latest
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
WORKDIR /app
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/client .
# Copy config file
COPY sekai-unpacker-client.yaml .
CMD ["./client", "-p", "cn", "-p", "jp"]
EXPOSE 3000