Created
October 10, 2017 17:25
-
-
Save lucax88x/6d661c3694a5e96f5e42ec6abcb83765 to your computer and use it in GitHub Desktop.
dockerfile.write.migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.0-sdk AS build-env | |
LABEL Luca Trazzi | |
COPY ./src /build | |
WORKDIR /build/Memore.Infrastructure.Write.Migrations | |
RUN dotnet restore | |
RUN dotnet build -c Release -o ../out | |
WORKDIR /build/Memore.Migrator | |
RUN dotnet restore | |
RUN dotnet build -c Release -o ../migrator | |
WORKDIR /build/migrator | |
ENTRYPOINT ["dotnet", "Memore.Migrator.dll", "-conn", "Server=postgres;Port=5432;Database=memore;User Id=admin;Password=Password6.;", "-assembly", "../out/Memore.Infrastructure.Write.Migrations.dll", "-task", "migrate:up", "-tag" , "main"] |
arialdomartini
commented
Oct 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment