improve run.sh and .dockerignore

- chdir on start run.sh
- do not ignore .git and some other file while build docker
This commit is contained in:
Robert Paciorek 2024-03-28 12:08:14 +00:00
parent b5bb289a4e
commit 6188c67271
2 changed files with 3 additions and 7 deletions

View File

@ -1,8 +1,5 @@
**/.classpath **/.classpath
**/.dockerignore
**/.env **/.env
**/.git
**/.gitignore
**/.project **/.project
**/.settings **/.settings
**/.toolstarget **/.toolstarget
@ -14,12 +11,8 @@
**/azds.yaml **/azds.yaml
**/bin **/bin
**/charts **/charts
**/docker-compose*
**/Dockerfile*
**/node_modules **/node_modules
**/npm-debug.log **/npm-debug.log
**/obj **/obj
**/secrets.dev.yaml **/secrets.dev.yaml
**/values.dev.yaml **/values.dev.yaml
LICENSE
README.md

3
run.sh
View File

@ -1 +1,4 @@
#!/bin/sh
cd "$(dirname "$0")"
dotnet run --project src/sodoff.csproj dotnet run --project src/sodoff.csproj