Enforce git config on startup (#383)

This commit is contained in:
Thomas Miceli
2024-11-21 11:23:57 +01:00
committed by GitHub
parent 00e3d09cc5
commit 5994cd6ccd
3 changed files with 28 additions and 3 deletions

View File

@ -33,8 +33,6 @@ FROM base AS dev
EXPOSE 6157 2222 16157
VOLUME /opengist
RUN git config --global --add safe.directory /opengist
CMD ["make", "watch"]
@ -60,7 +58,7 @@ RUN apk update && \
libstdc++
RUN addgroup -S opengist && \
adduser -S -G opengist -H -s /bin/ash -g 'Opengist User' opengist
adduser -S -G opengist -s /bin/ash -g 'Opengist User' opengist
COPY --from=build --chown=opengist:opengist /opengist/config.yml config.yml