mirror of
https://github.com/bitwarden/server.git
synced 2025-05-25 21:34:52 -05:00
Update MsSqlMigratorUtility Docker file
This commit is contained in:
parent
0444e9351b
commit
36e8341bc4
@ -1,6 +1,8 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
###############################################
|
||||||
|
# Build stage #
|
||||||
|
###############################################
|
||||||
|
|
||||||
LABEL com.bitwarden.product="bitwarden"
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS bitwarden-build
|
||||||
|
|
||||||
# Copy csproj files as distinct layers
|
# Copy csproj files as distinct layers
|
||||||
WORKDIR /source
|
WORKDIR /source
|
||||||
@ -20,4 +22,15 @@ RUN dotnet publish -c release -o /app/MsSqlMigratorUtility --no-restore --no-sel
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
###############################################
|
||||||
|
# App stage #
|
||||||
|
###############################################
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||||
|
|
||||||
|
LABEL com.bitwarden.product="bitwarden"
|
||||||
|
|
||||||
|
# Copy app from the build stage
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=bitwarden-build /app/MsSqlMigratorUtility ./
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "-c", "dotnet /app/MsSqlMigratorUtility.dll \"${MSSQL_CONN_STRING}\" -v ${@}", "--" ]
|
ENTRYPOINT ["sh", "-c", "dotnet /app/MsSqlMigratorUtility.dll \"${MSSQL_CONN_STRING}\" -v ${@}", "--" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user