gitdataai/docker/app.Dockerfile
ZhenYi 96ce6fde1c feat(docker): add safe.directory git config for git-enabled containers
Prevents "dubious ownership" errors when running git commands in containers
with mounted repositories (root user + external volume).
2026-05-13 00:32:41 +08:00

9 lines
292 B
Docker

FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates libssl3 openssh-client procps git \
&& rm -rf /var/lib/apt/lists/*
RUN git config --system --add safe.directory '*'
WORKDIR /app
COPY ./target/release/app /bin
EXPOSE 3000
CMD ["app"]