21 lines
648 B
Plaintext
21 lines
648 B
Plaintext
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
|
|
WORKDIR /app
|
|
EXPOSE 80
|
|
EXPOSE 443
|
|
|
|
FROM microsoft/dotnet:2.1-sdk AS build
|
|
WORKDIR /src
|
|
COPY ["uk.co.syski.websocket/Syski.WebSocket.csproj", "uk.co.syski.websocket/"]
|
|
COPY ["uk.co.syski.data/Syski.Data.csproj", "uk.co.syski.data/"]
|
|
RUN dotnet restore "uk.co.syski.websocket/Syski.WebSocket.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/uk.co.syski.websocket"
|
|
RUN dotnet build "Syski.WebSocket.csproj" -c Release -o /app
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "Syski.WebSocket.csproj" -c Release -o /app
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /app .
|
|
ENTRYPOINT ["dotnet", "Syski.WebSocket.dll"] |