updated dockerfile, readme and settings

This commit is contained in:
2019-01-26 23:15:41 +01:00
parent 4db904643c
commit ff33aac61e
4 changed files with 50 additions and 16 deletions

View File

@@ -1,22 +1,22 @@
FROM microsoft/dotnet:sdk AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY ./*/*.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
RUN dotnet restore Tv7Playlist.sln
RUN dotnet publish -c Release -o out Tv7Playlist.sln
# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
RUN mkdir /data
COPY --from=build-env /app/Tv7Playlist/out .
ENV ASPNETCORE_URLS=http://+:80
EXPOSE 80
VOLUME [ "/data" ]
ENTRYPOINT ["dotnet", "Tv7Playlist.dll"]