diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-10 08:03:29 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-10 08:03:29 +0300 |
commit | f6232219feb0c1d1110b5a05d7c2617b236dcf09 (patch) | |
tree | 98ac4f754e9453f16f148b6f334aa6d9e38b6346 | |
parent | 40f101057350347317618252fd2fda3f170a982a (diff) |
add libman restore to dockerfile
-rw-r--r-- | .config/dotnet-tools.json | 6 | ||||
-rw-r--r-- | .dockerignore | 6 | ||||
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | docker-compose.yml | 10 |
4 files changed, 15 insertions, 8 deletions
diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index f331fe5..854a50a 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -7,6 +7,12 @@ "commands": [ "dotnet-ef" ] + }, + "microsoft.web.librarymanager.cli": { + "version": "2.1.175", + "commands": [ + "libman" + ] } } }
\ No newline at end of file diff --git a/.dockerignore b/.dockerignore index f11c5d6..cf1e89e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,8 @@ # database file Database/MyDarlingDb.db Database/MyDarlingDb.db-shm -Database/MyDarlingDb.db-wal
\ No newline at end of file +Database/MyDarlingDb.db-wal + +# wwwroot +wwwroot/lib +wwwroot/content
\ No newline at end of file @@ -4,6 +4,7 @@ WORKDIR /app COPY . ./ RUN dotnet restore RUN dotnet tool restore +RUN dotnet libman restore RUN dotnet ef database update RUN dotnet publish -c Release -o out diff --git a/docker-compose.yml b/docker-compose.yml index a683f15..707050c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,10 @@ version: '3' services: my-darling: - build: . + image: gitea.cebotari.ru/chebser/mydarling-dotnet:latest container_name: mydarling-net ports: - "5050:5000" volumes: - - mydarling-db:/app/Database - - mydarling-wwwroot:/app/wwwroot - -volumes: - mydarling-db: - mydarling-wwwroot:
\ No newline at end of file + - ./Database:/app/Database + - ./content:/app/wwwroot/content
\ No newline at end of file |