forked from amber-lang/amber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
LABEL description="Used to test the compiled bash script for various environment." | ||
|
||
ARG BASE_BASE_IMAGE=bash:5.2 | ||
ARG INSTALL_GNU_SED | ||
FROM $BASE_BASE_IMAGE | ||
|
||
# A non-root user(guest) is required by is_root() test | ||
RUN useradd -m appuser | ||
USER appuser | ||
WORKDIR /home/appuser | ||
|
||
RUN apk add \ | ||
curl \ | ||
# Includes mktemp | ||
coreutils \ | ||
; | ||
|
||
RUN if [ -n "$INSTALL_GNU_SED" ]; then \ | ||
apk add sed \ | ||
RUN if [ "$INSTALL_GNU_SED" == "GNU sed" ]; \ | ||
then apk add sed; \ | ||
fi | ||
|
||
# A non-root user(guest) is required by is_root() test | ||
RUN adduser -D appuser | ||
USER appuser | ||
WORKDIR /home/appuser | ||
|
||
CMD ["sleep", "infinity"] | ||
LABEL description="Used to test the compiled bash script for various environment." |