From 99ed04552c5e7e6d9fd36085d6482eb6d658cde0 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:46:39 -0400 Subject: [PATCH] Fix directory issue in Api and Events Dockerfiles (#1371) --- src/Api/Dockerfile | 2 +- src/Api/build.sh | 4 ++-- src/Events/Dockerfile | 2 +- src/Events/build.sh | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) 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