Skip to content

Commit

Permalink
feat: add domain (#162)
Browse files Browse the repository at this point in the history
* feat: add domain

* chore: specific version of dotnet-ef

---------

Co-authored-by: Damian Laczak <[email protected]>
  • Loading branch information
shoter and shoter authored Mar 11, 2024
1 parent dea7e25 commit f4aeadc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY ./OpenttdDiscord.Database.Tests/OpenttdDiscord.Database.Tests.csproj ./Open
COPY ./OpenttdDiscord.Discord/OpenttdDiscord.Discord.csproj ./OpenttdDiscord.Discord/OpenttdDiscord.Discord.csproj
COPY ./OpenttdDiscord.DockerizedTesting/OpenttdDiscord.DockerizedTesting.csproj ./OpenttdDiscord.DockerizedTesting/OpenttdDiscord.DockerizedTesting.csproj
COPY ./OpenttdDiscord.Domain/OpenttdDiscord.Domain.csproj ./OpenttdDiscord.Domain/OpenttdDiscord.Domain.csproj
COPY ./OpenttdDiscord.Domain.Tests/OpenttdDiscord.Domain.Tests.csproj ./OpenttdDiscord.Domain.Tests/OpenttdDiscord.Domain.Tests.csproj
COPY ./OpenttdDiscord.Infrastructure/OpenttdDiscord.Infrastructure.csproj ./OpenttdDiscord.Infrastructure/OpenttdDiscord.Infrastructure.csproj
COPY ./OpenttdDiscord.Infrastructure.Tests/OpenttdDiscord.Infrastructure.Tests.csproj ./OpenttdDiscord.Infrastructure.Tests/OpenttdDiscord.Infrastructure.Tests.csproj
COPY ./OpenttdDiscord.Tests.Common/OpenttdDiscord.Tests.Common.csproj ./OpenttdDiscord.Tests.Common/OpenttdDiscord.Tests.Common.csproj
Expand All @@ -29,7 +30,7 @@ RUN dotnet publish "/build/OpenttdDiscord.Database.Migrator/OpenttdDiscord.Datab

FROM build as dbMigrations

RUN dotnet tool install --global dotnet-ef
RUN dotnet tool install --global dotnet-ef --version 7.0.16
ENV PATH="$PATH:/root/.dotnet/tools"
WORKDIR /build/OpenttdDiscord.Database
RUN dotnet ef migrations script -v -i -o /script.sql
Expand All @@ -50,3 +51,4 @@ ENTRYPOINT ["bash", "-c", "./startup.sh"]




0 comments on commit f4aeadc

Please sign in to comment.