Commit
+3 -3 +/-1 browse
1 | diff --git a/containers/base/Containerfile b/containers/base/Containerfile |
2 | index 5eaa0a0..e02d233 100644 |
3 | --- a/containers/base/Containerfile |
4 | +++ b/containers/base/Containerfile |
5 | @@ -47,6 +47,9 @@ RUN adduser -D -s /bin/sh -h /home/ayllu ayllu |
6 | # generate a default server config to fallback to |
7 | RUN mkdir -p /etc/ayllu && ayllu config generate > /etc/ayllu/config.yaml |
8 | |
9 | + USER ayllu |
10 | + WORKDIR /home/ayllu |
11 | + |
12 | # add a basic git configuration |
13 | # NOTE: this explicitly ignores CVE 2022-24765 because this is not a multi-user |
14 | # git environment. |
15 | @@ -54,7 +57,4 @@ RUN \ |
16 | git config --global --add user.name 'ayllu' && \ |
17 | git config --global --add safe.directory '*' |
18 | |
19 | - USER ayllu |
20 | - WORKDIR /home/ayllu |
21 | - |
22 | CMD ["/usr/bin/ayllu", "serve"] |