Skip to content

Instantly share code, notes, and snippets.

@exegeteio
Last active April 11, 2021 20:31
Show Gist options
  • Save exegeteio/82eae6d345cbde2ae94c104bcd448c48 to your computer and use it in GitHub Desktop.
Save exegeteio/82eae6d345cbde2ae94c104bcd448c48 to your computer and use it in GitHub Desktop.
rwxrob
#!/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
FROM rwxrob/base
RUN touch ~/found
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