x
This commit is contained in:
parent
c7a7fe517b
commit
e5127dd413
3 changed files with 10 additions and 11 deletions
|
@ -3,16 +3,15 @@ WORKDIR /app
|
|||
|
||||
# Separate layers here to avoid redoing dependencies on code change.
|
||||
COPY *.sln .
|
||||
COPY DockerExporter/*.csproj ./DockerExporter/
|
||||
COPY *.csproj .
|
||||
RUN dotnet restore
|
||||
|
||||
# Now the code.
|
||||
COPY DockerExporter/. ./DockerExporter/
|
||||
WORKDIR /app/DockerExporter
|
||||
COPY . .
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/DockerExporter/out ./
|
||||
COPY --from=build /app/out .
|
||||
|
||||
ENTRYPOINT ["dotnet", "DockerExporter.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue