mirror of
https://github.com/Bluemangoo/sekai-unpacker.git
synced 2026-09-20 00:06:52 +08:00
dockerfile, modify it when using
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user