Last active
April 11, 2021 20:31
-
-
Save exegeteio/82eae6d345cbde2ae94c104bcd448c48 to your computer and use it in GitHub Desktop.
rwxrob
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
#!/bin/sh | |
USER=exegete | |
docker image rm $USER/base 2>/dev/null | |
docker image rm $USER/lab 2>/dev/null | |
docker build -t $USER/base -f Dockerfile.base ./ | |
docker build -t $USER/lab -f Dockerfile ./ | |
docker run --rm -it $USER/lab bash |
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
FROM rwxrob/base | |
RUN touch ~/found |
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
FROM debian | |
RUN useradd -ms /bin/bash you | |
USER you | |
WORKDIR /home/you | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment