gitdataai/docker/gitserver.Dockerfile
ZhenYi 759ce7444e
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
build(docker): 在多个 Docker 镜像中添加 Git 安装
2026-04-16 21:25:55 +08:00

17 lines
444 B
Docker

# Runtime only — binary built externally via cargo
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates libssl3 openssh-server git \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /run/sshd && \
ssh-keygen -A && \
chmod 755 /etc/ssh
WORKDIR /app
COPY target/x86_64-unknown-linux-gnu/release/gitserver /app/gitserver
ENV APP_LOG_LEVEL=info
ENTRYPOINT ["/app/gitserver"]