add libman restore to dockerfile
This commit is contained in:
parent
40f1010573
commit
f6232219fe
@ -7,6 +7,12 @@
|
|||||||
"commands": [
|
"commands": [
|
||||||
"dotnet-ef"
|
"dotnet-ef"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"microsoft.web.librarymanager.cli": {
|
||||||
|
"version": "2.1.175",
|
||||||
|
"commands": [
|
||||||
|
"libman"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,8 @@
|
|||||||
# database file
|
# database file
|
||||||
Database/MyDarlingDb.db
|
Database/MyDarlingDb.db
|
||||||
Database/MyDarlingDb.db-shm
|
Database/MyDarlingDb.db-shm
|
||||||
Database/MyDarlingDb.db-wal
|
Database/MyDarlingDb.db-wal
|
||||||
|
|
||||||
|
# wwwroot
|
||||||
|
wwwroot/lib
|
||||||
|
wwwroot/content
|
@ -4,6 +4,7 @@ WORKDIR /app
|
|||||||
COPY . ./
|
COPY . ./
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
RUN dotnet tool restore
|
RUN dotnet tool restore
|
||||||
|
RUN dotnet libman restore
|
||||||
RUN dotnet ef database update
|
RUN dotnet ef database update
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
|
@ -2,14 +2,10 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
my-darling:
|
my-darling:
|
||||||
build: .
|
image: gitea.cebotari.ru/chebser/mydarling-dotnet:latest
|
||||||
container_name: mydarling-net
|
container_name: mydarling-net
|
||||||
ports:
|
ports:
|
||||||
- "5050:5000"
|
- "5050:5000"
|
||||||
volumes:
|
volumes:
|
||||||
- mydarling-db:/app/Database
|
- ./Database:/app/Database
|
||||||
- mydarling-wwwroot:/app/wwwroot
|
- ./content:/app/wwwroot/content
|
||||||
|
|
||||||
volumes:
|
|
||||||
mydarling-db:
|
|
||||||
mydarling-wwwroot:
|
|
Loading…
Reference in New Issue
Block a user