-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dockerfile and cache the images
- Loading branch information
Showing
2 changed files
with
38 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG BASE_BASE_IMAGE=bash:5.2 | ||
FROM $BASE_BASE_IMAGE | ||
ARG INSTALL_GNU_SED | ||
|
||
RUN apk add \ | ||
curl \ | ||
# Includes mktemp | ||
coreutils \ | ||
; | ||
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." |