forked from SoDOff-Project/sodoff
Update Dockerfile
This commit is contained in:
parent
a072984af0
commit
9804c6c1a0
@ -8,15 +8,6 @@ COPY . .
|
||||
# Restore dependencies and build the application
|
||||
RUN dotnet build -c Release -o /app
|
||||
|
||||
# install ef tools
|
||||
RUN dotnet tool install --global dotnet-ef --version 7.0.12
|
||||
|
||||
# ensure path set
|
||||
ENV PATH="${PATH}:/root/.dotnet/tools"
|
||||
|
||||
# ensure database is in sync with migrations
|
||||
RUN dotnet ef database update --project /src/src/sodoff.csproj
|
||||
|
||||
# move mods and assets directors from sources to /app
|
||||
RUN mv src/mods /app && ln -s /app/mods src/
|
||||
RUN mv src/assets /app && ln -s /app/assets src/
|
||||
|
Loading…
x
Reference in New Issue
Block a user