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 | 0d0a419dab2600e5e5e934a572e8200d53b11c0e (patch) | |
tree | d2da99c5ef5252d826b0e0c1f2d06f404e5923df /Dockerfile | |
parent | 0c33891dc58aba2648b093b6739c1897d088de1e (diff) | |
download | timeline-0d0a419dab2600e5e5e934a572e8200d53b11c0e.tar.gz timeline-0d0a419dab2600e5e5e934a572e8200d53b11c0e.tar.bz2 timeline-0d0a419dab2600e5e5e934a572e8200d53b11c0e.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"] |