-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dockerfile): auto migrate and adminer added (#14)
- Loading branch information
1 parent
05a7be3
commit 52c6041
Showing
3 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 | ||
|
||
RUN dotnet tool install --global dotnet-ef --version 8.0 | ||
ENV PATH="${PATH}:/root/.dotnet/tools" | ||
|
||
WORKDIR /build | ||
|
||
# Copy solution file | ||
#COPY ./AnalysisData/AnalysisData.sln ./ | ||
|
||
# Copy src .csproj files | ||
#COPY ./AnalysisData/AnalysisData/AnalysisData.csproj ./src/AnalysisData/ | ||
|
||
# Copy everything and build | ||
COPY . . | ||
|
||
WORKDIR /build | ||
|
||
CMD ["dotnet", "ef", "--project", "AnalysisData/AnalysisData/AnalysisData.csproj", "database", "update"] |
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