Prevents "dubious ownership" errors when running git commands in containers with mounted repositories (root user + external volume).
9 lines
302 B
Docker
9 lines
302 B
Docker
FROM ubuntu:24.04
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates libssl3 git openssh-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN git config --system --add safe.directory '*'
|
|
WORKDIR /app
|
|
COPY ./target/release/gitserver /bin
|
|
EXPOSE 8021 2222
|
|
CMD ["gitserver"] |