Last active
February 19, 2021 15:16
-
-
Save mikeslattery/8cd7ebd9f0d0d9387bc2d36590dd9aab to your computer and use it in GitHub Desktop.
Mock Dockerfile syntax for local testing
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
alias FROM='docker run -it --rm' | |
ADD() { curl -sLf "$1" -o "$2"; } | |
alias RUN='' ARG='' ENV='' CMD='' | |
alias LABEL=: EXPOSE=: ENTRYPOINT=: VOLUME=: ONBUILD=: STOPSIGNAL=: HEALTHCHECK=: SHELL=: | |
SHELL() { eval "export SHELL=$1"; } | |
alias WORKDIR=cd | |
USER() { sudo -u "$1" bash --init-file fake_dockerfile.sh; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment