diff options
author | crupest <crupest@outlook.com> | 2020-06-01 14:51:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-01 14:51:55 +0800 |
commit | 5636e3c526055526d3f615fc9c3d43087a2ffc2a (patch) | |
tree | d48819f1487ef1c91fba4b0f9c6f263d2266da18 /Dockerfile | |
parent | 92f96ac3638bb071eedee96bcbe636a2e1584344 (diff) | |
download | timeline-5636e3c526055526d3f615fc9c3d43087a2ffc2a.tar.gz timeline-5636e3c526055526d3f615fc9c3d43087a2ffc2a.tar.bz2 timeline-5636e3c526055526d3f615fc9c3d43087a2ffc2a.zip |
Update docker and CI.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..49d938df --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM crupest/timeline-build-env:latest AS build +WORKDIR /timeline-app +COPY . . +RUN dotnet publish Timeline/Timeline.csproj --configuration Release --output ./Timeline/publish/ -r linux-x64 --self-contained false + +FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 +WORKDIR /app +COPY --from=build /timeline-app/Timeline/publish . +ENTRYPOINT ["dotnet", "Timeline.dll"] |