Skip to content

Commit

Permalink
Chore: [Dockerfile] 修正指令
Browse files Browse the repository at this point in the history
  • Loading branch information
teamolhuang committed Feb 14, 2025
1 parent 1a4b945 commit 8471b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ COPY ["coords-to-taiwanese-city-country.csproj", "./"]
RUN dotnet restore "coords-to-taiwanese-city-country.csproj"
COPY . .
WORKDIR "/src/"
RUN dotnet build "coords-to-taiwanese-city-country.csproj" -c $BUILD_CONFIGURATION -o /app/build
RUN dotnet build "coords-to-taiwanese-city-country.csproj" -c $BUILD_CONFIGURATION -o /app/build -r linux-arm64

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "coords-to-taiwanese-city-country.csproj" -c $BUILD_CONFIGURATION -o /app/publish /r linux-arm64 /p:UseAppHost=false
RUN dotnet publish "coords-to-taiwanese-city-country.csproj" -c $BUILD_CONFIGURATION -o /app/publish -r linux-arm64 /p:UseAppHost=false

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit 8471b96

Please sign in to comment.