Commit

Author:

Hash:

Timestamp:

+8 -1 +/-1 browse

Kevin Schoon [me@kevinschoon.com]

6e101aeb21bb63bf958e93575b2e3e913aac51b0

Wed, 17 Apr 2024 09:59:17 +0000 (1.2 years ago)

update base container with git and basic .gitconfig
1diff --git a/containers/base/Containerfile b/containers/base/Containerfile
2index 3f4c7a0..5eaa0a0 100644
3--- a/containers/base/Containerfile
4+++ b/containers/base/Containerfile
5 @@ -34,7 +34,7 @@ RUN npm install && scripts/compile_stylesheets.sh
6 FROM alpine:3.19.1
7
8 RUN apk add \
9- fontconfig libgit2-dev sqlite \
10+ fontconfig git libgit2-dev sqlite \
11 tree-sitter-grammars # all of the syntax highlighting available in alpine
12
13 COPY --from=build --chown=0:0 /home/builder/src/target/release/ayllu /usr/bin/
14 @@ -47,6 +47,13 @@ RUN adduser -D -s /bin/sh -h /home/ayllu ayllu
15 # generate a default server config to fallback to
16 RUN mkdir -p /etc/ayllu && ayllu config generate > /etc/ayllu/config.yaml
17
18+ # add a basic git configuration
19+ # NOTE: this explicitly ignores CVE 2022-24765 because this is not a multi-user
20+ # git environment.
21+ RUN \
22+ git config --global --add user.name 'ayllu' && \
23+ git config --global --add safe.directory '*'
24+
25 USER ayllu
26 WORKDIR /home/ayllu
27