-
Notifications
You must be signed in to change notification settings - Fork 4
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
5 changed files
with
22 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG version=3.20 | ||
|
||
FROM alpine:$version as latest | ||
FROM alpine:$version AS latest | ||
LABEL maintainer="Martin Hasoň <[email protected]>" | ||
|
||
ARG version | ||
|
@@ -16,7 +16,7 @@ COPY rootfs / | |
|
||
RUN sed -i "s/\$ALPINE_RELEASE/$([ 'edge' = "$version" ] && echo "$version" || echo "v$version")/g" /etc/apk/repositories \ | ||
&& [ 'edge' = "$version" ] && sed -i 's/@testing //' /etc/apk/repositories || echo "ok" >/dev/null \ | ||
&& apk add -u busybox-extras busybox-suid su-exec inotify-tools dropbear dropbear-scp dropbear-dbclient dropbear-convert ca-certificates flock gettext libc6-compat libintl tini monit \ | ||
&& apk add -u busybox-extras busybox-suid su-exec inotify-tools dropbear dropbear-scp dropbear-dbclient dropbear-convert ca-certificates flock gettext libc6-compat libintl tini monit nano \ | ||
&& mv /usr/bin/envsubst /usr/local/bin/ \ | ||
&& apk del gettext \ | ||
&& wget -O /bin/wait-for https://raw.githubusercontent.com/eficode/wait-for/v2.2.4/wait-for && chmod a+x /bin/wait-for \ | ||
|
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
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,8 +1,12 @@ | ||
NORMAL="\[\e[0m\]" | ||
RED="\[\e[1;31m\]" | ||
GREEN="\[\e[1;32m\]" | ||
YELLOW="\[\e[1;33m\]" | ||
NAME="(docker $(id -un):$(id -u):$(id -g))" | ||
if [ "$(id -un)" = root ]; then | ||
PS1="$RED(docker) $NORMAL\w# " | ||
PS1="$RED$NAME$NORMAL \w# " | ||
elif [ "$(stat -c "%U" "$PWD")" != "$(id -un)" ]; then | ||
PS1="$YELLOW$NAME$NORMAL \w# " | ||
else | ||
PS1="$GREEN(docker) $NORMAL\w\$ " | ||
PS1="$GREEN$NAME$NORMAL \w\$ " | ||
fi |