fixed build of docker image

This commit is contained in:
2018-12-09 23:40:36 +01:00
parent 771f87a9f3
commit e5ed4a6ccc
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ pipeline:
image: plugins/docker
repo: phaefelfinger/tv7playlist
tags:
- latest
- 2.0
secrets: [ docker_username, docker_password ]
debug: true
when:

View File

@@ -2,7 +2,7 @@ FROM microsoft/dotnet:sdk AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
COPY ./*/*.csproj ./
RUN dotnet restore
# Copy everything else and build
@@ -14,7 +14,7 @@ FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY --from=build-env /app/out .
COPY --from=build-env /app/Tv7Playlist/out .
ENV ASPNETCORE_URLS=http://+:80
EXPOSE 80