forked from dsuryd/dotNetify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
30 lines (22 loc) · 653 Bytes
/
deploy.bat
File metadata and controls
30 lines (22 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
echo -- Build client app
call npm run build-prod --prefix ./DevApp
if "%1"=="local" goto :local
goto :heroku
:local
echo --- Remove any existing image
docker rmi dotnetify -f
echo --- Build a new image
docker build -t dotnetify -f ./Dockerfile . --build-arg aspnetenv=Production
echo --- Remove build images
docker image prune -f --filter label=stage=build
rd __tmp__ /q /s
echo --- Run a container on port 8080
docker run -it --rm -p:8080:80 --name dotnetify_8080 dotnetify
goto :end
:heroku
rem heroku login
call heroku container:login
call heroku container:push web -a dotnetify
call heroku container:release web -a dotnetify
:end