diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index e1ed8eaf5..e361700fa 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update \ ENV ASPNETCORE_URLS http://+:5000 WORKDIR /app EXPOSE 5000 -COPY obj/build-output/publish/Api . +COPY obj/build-output/publish . COPY entrypoint.sh / RUN chmod +x /entrypoint.sh diff --git a/src/Api/build.sh b/src/Api/build.sh index b74b52f3d..27ea58065 100755 --- a/src/Api/build.sh +++ b/src/Api/build.sh @@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)" echo "Restore" dotnet restore "$DIR/Api.csproj" echo "Clean" -dotnet clean "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Api" +dotnet clean "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish" echo "Publish" -dotnet publish "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Api" +dotnet publish "$DIR/Api.csproj" -c "Release" -o "$DIR/obj/build-output/publish" echo -e "\nBuilding docker image" docker --version diff --git a/src/Events/Dockerfile b/src/Events/Dockerfile index 37f60b9a7..e361700fa 100644 --- a/src/Events/Dockerfile +++ b/src/Events/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update \ ENV ASPNETCORE_URLS http://+:5000 WORKDIR /app EXPOSE 5000 -COPY obj/build-output/publish/Events . +COPY obj/build-output/publish . COPY entrypoint.sh / RUN chmod +x /entrypoint.sh diff --git a/src/Events/build.sh b/src/Events/build.sh index 67168dd6d..23bbbe9f4 100755 --- a/src/Events/build.sh +++ b/src/Events/build.sh @@ -10,9 +10,9 @@ echo ".NET Core version $(dotnet --version)" echo "Restore" dotnet restore "$DIR/Events.csproj" echo "Clean" -dotnet clean "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Events" +dotnet clean "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish" echo "Publish" -dotnet publish "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish/Events" +dotnet publish "$DIR/Events.csproj" -c "Release" -o "$DIR/obj/build-output/publish" echo -e "\nBuilding docker image" docker --version