Skip to content

Commit d1768c2

Browse files
committed
Create a script that will build (and run) the docker container.
1 parent af3635d commit d1768c2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sh/build_container.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Kill and remove the docker container
4+
docker rm -f refarch_api
5+
6+
# Run the docker image with all of the necessary overrides
7+
docker run -itd -p 5001:80 \
8+
-e ASPNETCORE_ENVIRONMENT \
9+
-e NoteTaker__NotificationService__SendGrid__ApiKey \
10+
-e ConnectionStrings__NoteTakerService \
11+
--name refarch_api walterpinson/reference-architecture-api

0 commit comments

Comments
 (0)