Fix Docker build context for deployment
This commit is contained in:
+19
-15
@@ -1,17 +1,21 @@
|
|||||||
**/.git
|
# Keep the backend build context as small and predictable as possible.
|
||||||
**/.vs
|
# The backend Docker build uses the repo root as its context, so exclude
|
||||||
**/.idea
|
# everything first and then opt back into only the source folders it needs.
|
||||||
**/.vscode
|
*
|
||||||
|
!JobTrackerApi/
|
||||||
|
!Data/
|
||||||
|
!Models/
|
||||||
|
!.dockerignore
|
||||||
|
|
||||||
**/bin
|
# Include the source trees.
|
||||||
**/obj
|
!JobTrackerApi/**
|
||||||
**/bin_build
|
!Data/**
|
||||||
|
!Models/**
|
||||||
|
|
||||||
**/*.db
|
# Re-exclude generated and local data inside the backend project.
|
||||||
**/*.db-*
|
JobTrackerApi/bin/
|
||||||
|
JobTrackerApi/obj/
|
||||||
job-tracker-ui/node_modules
|
JobTrackerApi/bin_build/
|
||||||
job-tracker-ui/build
|
JobTrackerApi/Attachments/
|
||||||
|
JobTrackerApi/*.db
|
||||||
**/node_modules
|
JobTrackerApi/*.db-*
|
||||||
**/npm-debug.log
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ __pycache__/
|
|||||||
# .NET / Visual Studio
|
# .NET / Visual Studio
|
||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
|
bin_build/
|
||||||
.vs/
|
.vs/
|
||||||
*.user
|
*.user
|
||||||
*.suo
|
*.suo
|
||||||
@@ -39,3 +40,8 @@ coverage/
|
|||||||
temp_job.json
|
temp_job.json
|
||||||
temp_post_job.py
|
temp_post_job.py
|
||||||
todo jobtracker.txt
|
todo jobtracker.txt
|
||||||
|
|
||||||
|
# Local app data
|
||||||
|
*.db
|
||||||
|
*.db-*
|
||||||
|
Attachments/
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
version: "3.9"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
@@ -64,4 +62,3 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
jobtracker_data:
|
jobtracker_data:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user