Skip to content

Commit 1f0e1e5

Browse files
fix: remove use of SHELL and specify bash in RUN
Remove the use of the `SHELL` command as it is not part of the OCI specification. Specify the use of `bash` in the `RUN` HEREDOC
1 parent bca960e commit 1f0e1e5

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎Dockerfile‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ COPY --from=comp /usr/bin/composer /usr/bin/composer
2323

2424
# Update and install required debian packages
2525
ENV DEBIAN_FRONTEND=noninteractive
26-
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2726
# hadolint ignore=DL3008 # 'Pin versions in apt get install'
28-
RUN <<EORUN
29-
set -xeu
27+
RUN <<EORUN bash
28+
set -xeuo pipefail
3029
apt-get update
3130
apt-get upgrade --yes
3231
apt-get install --yes --no-install-recommends \
@@ -42,8 +41,8 @@ rm -rf /var/lib/apt/lists/*
4241
EORUN
4342

4443
# Customize the http & php environment
45-
RUN <<EORUN
46-
set -xeu
44+
RUN <<EORUN bash
45+
set -xeuo pipefail
4746
cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
4847
cat > /etc/apache2/conf-available/remoteip.conf <<EOF
4948
RemoteIPHeader X-Real-IP
@@ -75,8 +74,8 @@ EORUN
7574
# Get and customize librebooking
7675
ARG APP_GH_REF
7776
ARG APP_GH_ADD_SHA=false
78-
RUN <<EORUN
79-
set -xeu
77+
RUN <<EORUN bash
78+
set -xeuo pipefail
8079
LB_TARBALL_URL="https://api.github.com/repos/LibreBooking/librebooking/tarball/${APP_GH_REF}"
8180
curl \
8281
--fail \

0 commit comments

Comments
 (0)