1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-07 22:18:17 -05:00

Fix MsSqlMigratorUtility project

This commit is contained in:
Vince Grassia 2023-11-09 18:23:07 -05:00
parent 414272b686
commit e7925f63e4
No known key found for this signature in database
GPG Key ID: 9AD7505E8448CC08
2 changed files with 18 additions and 1 deletions

View File

@ -189,3 +189,5 @@ RUN . /tmp/rid.txt && dotnet publish -c release -o /app/Server --no-restore --no
# Build Setup app
WORKDIR /source/util/Setup
RUN . /tmp/rid.txt && dotnet publish -c release -o /app/Setup --no-restore --no-self-contained -r $RID
WORKDIR /app

View File

@ -2,7 +2,22 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0
LABEL com.bitwarden.product="bitwarden"
# Copy csproj files as distinct layers
WORKDIR /source
COPY util/MsSqlMigratorUtility/*.csproj ./util/MsSqlMigratorUtility/
# Restore MsSqlMigratorUtility project dependencies and tools
WORKDIR /source/util/MsSqlMigratorUtility
RUN dotnet restore
# Copy required project files
WORKDIR /source
COPY util/MsSqlMigratorUtility/. ./util/MsSqlMigratorUtility/
# Build Setup app
WORKDIR /source/util/MsSqlMigratorUtility
RUN dotnet publish -c release -o /app/MsSqlMigratorUtility --no-restore --no-self-contained
WORKDIR /app
COPY obj/build-output/publish .
ENTRYPOINT ["sh", "-c", "dotnet /app/MsSqlMigratorUtility.dll \"${MSSQL_CONN_STRING}\" -v ${@}", "--" ]