-
Notifications
You must be signed in to change notification settings - Fork 1
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
44 additions
and
30 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
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,25 +1,28 @@ | ||
# build: docker build --no-cache --progress=plain -t tobi312/tools:toolbox -f toolbox.multiarch.alpine.Dockerfile . | ||
# hadolint ignore=DL3007 | ||
FROM alpine:latest | ||
|
||
ARG VCS_REF | ||
ARG BUILD_DATE | ||
|
||
SHELL ["/bin/ash", "-euxo", "pipefail", "-c"] | ||
|
||
LABEL org.opencontainers.image.title="ToolBox" \ | ||
org.opencontainers.image.authors="Tobias Hargesheimer <[email protected]>" \ | ||
org.opencontainers.image.version="${VCS_REF}" \ | ||
org.opencontainers.image.created="${BUILD_DATE}" \ | ||
org.opencontainers.image.revision="${VCS_REF}" \ | ||
org.opencontainers.image.description="ToolBox: docker run --rm --name toolbox -d tobi312/tools:toolbox && docker exec -it toolbox sh && nc -zv -w 3 <HOST> <PORT>" \ | ||
org.opencontainers.image.documentation="https://github.com/Tob1as/docker-tools/blob/main/README.md#toolbox" \ | ||
org.opencontainers.image.base.name="docker.io/library/alpine:latest" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \ | ||
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools" | ||
|
||
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"] | ||
org.opencontainers.image.authors="Tobias Hargesheimer <[email protected]>" \ | ||
org.opencontainers.image.version="${VCS_REF}" \ | ||
org.opencontainers.image.created="${BUILD_DATE}" \ | ||
org.opencontainers.image.revision="${VCS_REF}" \ | ||
org.opencontainers.image.description="ToolBox: docker run --rm --name toolbox -d tobi312/tools:toolbox && docker exec -it toolbox sh && nc -zv -w 3 <HOST> <PORT>" \ | ||
org.opencontainers.image.documentation="https://github.com/Tob1as/docker-tools/blob/main/README.md#toolbox" \ | ||
org.opencontainers.image.base.name="docker.io/library/alpine:latest" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \ | ||
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools" | ||
|
||
# hadolint ignore=DL3018 | ||
RUN \ | ||
addgroup --gid 1000 user ; \ | ||
adduser --system --shell /bin/sh --uid 1000 --ingroup user --home /home/user user ; \ | ||
#addgroup --gid 1000 user ; \ | ||
#adduser --system --shell /bin/sh --uid 1000 --ingroup user --home /home/user user ; \ | ||
apk add --no-cache \ | ||
bash \ | ||
git \ | ||
|
@@ -53,8 +56,9 @@ RUN \ | |
; \ | ||
echo ">> Tools installed!" | ||
|
||
#USER nobody | ||
#USER user | ||
#WORKDIR /home/user | ||
|
||
ENTRYPOINT ["/bin/sh", "-c", "--"] | ||
CMD ["while true; do sleep 60; done;"] | ||
CMD ["while true; do sleep 60; done;"] |
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