Last active
March 23, 2021 07:56
-
-
Save KrishnaPravin/2982a48b79d89bb85f98ef0d7c331ef9 to your computer and use it in GitHub Desktop.
Revisions
-
KrishnaPravin revised this gist
Mar 23, 2021 . 3 changed files with 9 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ FROM node:alpine COPY . . ARG APP_ENV=dev RUN npm run build:$APP_ENV This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,7 @@ # Docker version 20.10.5, build 55c4c88 # Default argument docker build . --progress plain --no-cache # Passed argument docker build . --progress plain --no-cache --build-arg APP_ENV=prod This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build:dev": "echo \"hello KKKKKKKKKKKKKKKKKKKKK\"", "build:prod": "echo \"hello AAAAAAAAAAAAAAAAAAAAAA\"" }, "author": "", "license": "ISC" -
KrishnaPravin revised this gist
Mar 23, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,2 @@ # Docker version 20.10.5, build 55c4c88 docker build . --progress plain --no-cache --build-arg APP_ENV=asd -
KrishnaPravin revised this gist
Mar 23, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ docker build . --progress plain --no-cache --build-arg APP_ENV=asd -
KrishnaPravin created this gist
Mar 23, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ FROM node:alpine COPY . . ARG APP_ENV=build RUN npm run build:$APP_ENV This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ { "name": "docker", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "echo \"hello KKKKKKKKKKKKKKKKKKKKK\"", "build:asd": "echo \"hello AAAAAAAAAAAAAAAAAAAAAA\"" }, "author": "", "license": "ISC" }