Skip to content

Commit

Permalink
Fix docker entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikwidlund committed Jan 18, 2025
1 parent bfd579a commit b766ed2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/HostsParser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ WORKDIR /src
COPY "HostsParser.csproj" .
RUN dotnet restore "HostsParser.csproj"
COPY . .
WORKDIR "/src"
RUN dotnet build "HostsParser.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "HostsParser.csproj" -c Release -o /app/publish /p:UseAppHost=true

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "HostsParser.dll"]
ENTRYPOINT ["./HostsParser"]

0 comments on commit b766ed2

Please sign in to comment.