|
|
@ -4,13 +4,13 @@ WORKDIR /src
|
|
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
RUN dotnet tool install --global dotnet-ef --version 8.0
|
|
|
|
# RUN dotnet tool install --global dotnet-ef --version 8.0
|
|
|
|
ENV PATH="${PATH}:/root/.dotnet/tools"
|
|
|
|
# ENV PATH="${PATH}:/root/.dotnet/tools"
|
|
|
|
|
|
|
|
|
|
|
|
# Add the migrations
|
|
|
|
# Add the migrations
|
|
|
|
RUN dotnet-ef migrations add --project StubbedContextLib/StubbedContextLib.csproj --startup-project HeartTrackAPI/HeartTrackAPI.csproj --context StubbedContextLib.TrainingStubbedContext --configuration Debug Initial
|
|
|
|
# RUN dotnet-ef migrations add --project StubbedContextLib/StubbedContextLib.csproj --startup-project HeartTrackAPI/HeartTrackAPI.csproj --context StubbedContextLib.TrainingStubbedContext --configuration Debug Initial
|
|
|
|
# Update the database
|
|
|
|
# Update the database
|
|
|
|
RUN dotnet-ef database update --project StubbedContextLib/StubbedContextLib.csproj --startup-project HeartTrackAPI/HeartTrackAPI.csproj --context StubbedContextLib.TrainingStubbedContext --configuration Debug
|
|
|
|
# RUN dotnet-ef database update --project StubbedContextLib/StubbedContextLib.csproj --startup-project HeartTrackAPI/HeartTrackAPI.csproj --context StubbedContextLib.TrainingStubbedContext --configuration Debug
|
|
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
USER root
|
|
|
|
RUN chown -R app:app HeartTrackAPI/
|
|
|
|
RUN chown -R app:app HeartTrackAPI/
|
|
|
@ -25,7 +25,7 @@ WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
COPY --from=build /src/HeartTrackAPI/uca.HeartTrack.db .
|
|
|
|
COPY --from=build /src/HeartTrackAPI/uca.HeartTrack.db .
|
|
|
|
RUN ls -l uca.HeartTrack.db
|
|
|
|
#RUN ls -l uca.HeartTrack.db
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 8081
|
|
|
|
EXPOSE 8081
|
|
|
|