Browse Source

Enable pipefail option

Piotr Orzechowski 1 year ago
parent
commit
0ae8254fd2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Dockerfile

+ 2
- 2
Dockerfile View File

@@ -37,8 +37,8 @@ RUN set -eu && apk --no-cache add \
37 37
                tzdata
38 38
 RUN set -eu && addgroup -S -g 1000 git \
39 39
             && adduser -S -D -G git -u 1000 -s '/bin/bash' -H -h '/data/git' git
40
-RUN set -eu && echo "root:$(head -c 32 /dev/urandom | base64)" | chpasswd \
41
-            && echo "git:$(head -c 32 /dev/urandom | base64)" | chpasswd
40
+RUN set -euo pipefail && echo "root:$(head -c 32 /dev/urandom | base64)" | chpasswd \
41
+                      && echo "git:$(head -c 32 /dev/urandom | base64)" | chpasswd
42 42
 
43 43
 COPY --from=builder "/go/src/code.gitea.io/gitea/gitea" "/usr/local/bin/gitea"
44 44
 COPY files /

Loading…
Cancel
Save