Created
October 2, 2019 07:26
-
-
Save dhavaln/fc868eba15e9dc7cbbf391cf5ec493e9 to your computer and use it in GitHub Desktop.
Docker Inline Demo
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
# Demo1: This is an inline build | |
docker build -t inlineimage -f- . <<EOF | |
FROM node:10 | |
MAINTAINER dhavaln | |
WORKDIR /usr/src | |
RUN echo "console.log('hello world');" > index.js | |
CMD ["node", "index.js"] | |
<<EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment