From e5ed4a6cccb9cd032ec8007a7c0c8366eff9ead1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sun, 9 Dec 2018 23:40:36 +0100 Subject: [PATCH] fixed build of docker image --- .drone.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 162557d..a74c205 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ pipeline: image: plugins/docker repo: phaefelfinger/tv7playlist tags: - - latest + - 2.0 secrets: [ docker_username, docker_password ] debug: true when: diff --git a/Dockerfile b/Dockerfile index 4e3ec4c..ef5bf38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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