updated dockerfile, readme and settings
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||
|
Reference in New Issue
Block a user