Browse Source

Use semicolons instead of logical conjuction

Piotr Orzechowski 1 year ago
parent
commit
4bfb3a1207
1 changed files with 22 additions and 22 deletions
  1. 22
    22
      Dockerfile

+ 22
- 22
Dockerfile View File

@@ -2,11 +2,11 @@ ARG golang_version
2 2
 ARG alpine_version
3 3
 FROM "golang:${golang_version}-alpine${alpine_version}" as builder
4 4
 
5
-RUN set -eu && apk --no-cache add \
6
-               gcc \
7
-               git \
8
-               make \
9
-               musl-dev
5
+RUN set -eu; apk --no-cache add \
6
+             gcc \
7
+             git \
8
+             make \
9
+             musl-dev
10 10
 
11 11
 ENV GOPATH="/go"
12 12
 ENV SRC_DIR="${GOPATH}/src/code.gitea.io/gitea"
@@ -14,31 +14,31 @@ WORKDIR "$SRC_DIR"
14 14
 
15 15
 ARG gitea_repo_url
16 16
 ARG gitea_version
17
-RUN set -eu && git clone --branch "v${gitea_version}" --depth 1 "$gitea_repo_url" "$SRC_DIR"
17
+RUN set -eu; git clone --branch "v${gitea_version}" --depth 1 "$gitea_repo_url" "$SRC_DIR"
18 18
 
19 19
 ARG gitea_build_tags
20
-RUN set -eu && TAGS="$gitea_build_tags" make generate build
20
+RUN set -eu; TAGS="$gitea_build_tags" make generate build
21 21
 
22 22
 ARG alpine_version
23 23
 FROM "alpine:${alpine_version}"
24 24
 
25 25
 LABEL maintainer="Piotr Orzechowski [orzechowski.tech]"
26 26
 
27
-RUN set -eu && apk --no-cache add \
28
-               bash \
29
-               ca-certificates \
30
-               curl \
31
-               git \
32
-               linux-pam \
33
-               openssh \
34
-               s6 \
35
-               sqlite \
36
-               su-exec \
37
-               tzdata
38
-RUN set -eu && addgroup -S -g 1000 git \
39
-            && adduser -S -D -G git -u 1000 -s '/bin/bash' -H -h '/data/git' git
40
-RUN set -euo pipefail && echo "root:$(head -c 32 /dev/urandom | base64)" | chpasswd \
41
-                      && echo "git:$(head -c 32 /dev/urandom | base64)" | chpasswd
27
+RUN set -eu; apk --no-cache add \
28
+             bash \
29
+             ca-certificates \
30
+             curl \
31
+             git \
32
+             linux-pam \
33
+             openssh \
34
+             s6 \
35
+             sqlite \
36
+             su-exec \
37
+             tzdata
38
+RUN set -eu; addgroup -S -g 1000 git; \
39
+             adduser -S -D -G git -u 1000 -s '/bin/bash' -H -h '/data/git' git
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