idk lets try this
This commit is contained in:
parent
cf64b3d548
commit
c7a7fe517b
14 changed files with 373 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Separate layers here to avoid redoing dependencies on code change.
|
||||
COPY *.sln .
|
||||
COPY DockerExporter/*.csproj ./DockerExporter/
|
||||
RUN dotnet restore
|
||||
|
||||
# Now the code.
|
||||
COPY DockerExporter/. ./DockerExporter/
|
||||
WORKDIR /app/DockerExporter
|
||||
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 ./
|
||||
|
||||
ENTRYPOINT ["dotnet", "DockerExporter.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue