mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-31 01:25:39 -05:00
Update hub service
This commit is contained in:
16
Hub/Service/Dockerfile
Normal file
16
Hub/Service/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM microsoft/dotnet:2.2-aspnetcore-runtime-stretch-slim AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM microsoft/dotnet:2.2-sdk-stretch AS build
|
||||
WORKDIR /src
|
||||
COPY ["./Service.csproj", "./"]
|
||||
RUN dotnet restore "Service.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src"
|
||||
RUN dotnet publish "Service.csproj" -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Hub.Service.dll"]
|
||||
Reference in New Issue
Block a user