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 image: plugins/docker
repo: phaefelfinger/tv7playlist repo: phaefelfinger/tv7playlist
tags: tags:
- latest - 2.0
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
debug: true debug: true
when: when:

View File

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