mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Update output directory for dotnet builds (#1358)
* Update output directory for dotnet builds * Update Dotnet build output path
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
*
|
||||
!obj/Docker/publish/*
|
||||
!obj/build-output/publish/*
|
||||
!obj/Docker/empty/
|
||||
|
@ -2,4 +2,4 @@ FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
|
||||
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
COPY obj/Docker/publish /bitwarden_server
|
||||
COPY obj/build-output/publish /bitwarden_server
|
||||
|
@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)"
|
||||
echo "Restore"
|
||||
dotnet restore "$DIR/Server.csproj"
|
||||
echo "Clean"
|
||||
dotnet clean "$DIR/Server.csproj" -c "Release" -o "$DIR/obj/Docker/publish"
|
||||
dotnet clean "$DIR/Server.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
echo "Publish"
|
||||
dotnet publish "$DIR/Server.csproj" -c "Release" -o "$DIR/obj/Docker/publish"
|
||||
dotnet publish "$DIR/Server.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
|
Reference in New Issue
Block a user