diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2b81e19..a3b5606 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -26,4 +26,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: latest \ No newline at end of file + tags: hiresm/czechitas:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a07e27d..1a3dbe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,9 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["AutomatedTestingApp/AutomatedTestingApp/AutomatedTestingApp.csproj", "AutomatedTestingApp/"] -RUN dotnet restore "AutomatedTestingApp/AutomatedTestingApp/AutomatedTestingApp.csproj" +RUN dotnet restore "AutomatedTestingApp/AutomatedTestingApp.csproj" COPY . . WORKDIR "/src/AutomatedTestingApp" -RUN dotnet build "AutomatedTestingApp.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "AutomatedTestingApp.csproj" -c Release -o /app/publish /p:UseAppHost=false