Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit f57365c

Browse files
authored
Ensure alpine uses bash
1 parent e4f66e3 commit f57365c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

script-library/test/regression/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ FROM ${IMAGE_TO_TEST}
99

1010
USER root
1111

12+
RUN . /etc/os-release \
13+
&& if [ "${ID}" = "alpine" ] || [ "${ID_LIKE}" = "alpine" ]; then apk add bash; fi
14+
1215
ARG USERNAME="vscode"
1316
ARG RUN_COMMON_SCRIPT="true"
1417
ARG UPGRADE_PACKAGES="false"

script-library/test/regression/alt.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ USER root
1212
ARG USERNAME="bort"
1313
RUN . /etc/os-release \
1414
&& if [ "${ID}" = "alpine" ] || [ "${ID_LIKE}" = "alpine" ]; then \
15-
addgroup -g 1001 the-borts && adduser -D -s /bin/bash -u 1001 -G the-borts ${USERNAME}; \
15+
apk add bash \
16+
&& addgroup -g 1001 the-borts && adduser -D -s /bin/bash -u 1001 -G the-borts ${USERNAME}; \
1617
else \
1718
groupadd --gid 1001 the-borts && useradd -s /bin/bash --uid 1001 --gid 1001 -m ${USERNAME}; \
1819
fi

0 commit comments

Comments
 (0)