Skip to content

Commit

Permalink
Split Dockerfile into 2 (local & prod)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Sawyer committed Jun 12, 2019
1 parent 6461921 commit 49a7152
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions local.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM node:10.16
WORKDIR /usr/src/app
COPY . .
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"start:docker": "ng serve --host 0.0.0.0 --port 4200",
"build": "ng build --prod",
"test": "ng test",
"test:prod": "ng test --prod --watch=false",
"lint": "ng lint",
"e2e": "ng e2e",
"predocker:build": "npm run build",
"docker:build": "cross-conf-env docker image build . -t $npm_package_config_imageRepo:$npm_package_version",
"docker:build": "cross-conf-env docker image build -f prod.Dockerfile . -t $npm_package_config_imageRepo:$npm_package_version",
"postdocker:build": "npm run docker:tag",
"docker:tag": "cross-conf-env docker image tag $npm_package_config_imageRepo:$npm_package_version $npm_package_config_imageRepo:latest",
"docker:run": "run-s -c docker:clean docker:runHelper",
Expand Down
File renamed without changes.

0 comments on commit 49a7152

Please sign in to comment.