1
0
mirror of https://github.com/Bluemangoo/sekai-unpacker.git synced 2026-05-06 20:44:47 +08:00
sekai-unpacker/client.DOCKERFILE

21 lines
553 B
Docker

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