Skip to content

Commit

Permalink
step to clean
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Nov 19, 2024
1 parent c4699dc commit 7cfd42a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ RUN if [[ "$INCLUDE_NPM_ARG" == "true" ]] ; then apk add --no-cache nodejs npm ;
COPY "/Code/src/$PROJECT_NAME_ARG" "/src/$PROJECT_NAME_ARG"
COPY "/Code/src/WeatherStationProject.Dashboard.Core" "/src/WeatherStationProject.Dashboard.Core"
COPY "/Code/src/WeatherStationProject.Dashboard.Data" "/src/WeatherStationProject.Dashboard.Data"
WORKDIR "/src/$PROJECT_NAME_ARG"
WORKDIR "/src/
# Things to avoid failure
RUN dotnet nuget locals all --clear
RUN dotnet outdated
RUN dotnet tool update --global dotnet-outdated-tool
RUN dotnet outdated --upgrade
# Deploy the app and dependencies into a deployable unit
RUN dotnet publish "./$PROJECT_NAME_ARG.csproj" --configuration Release --output "/app/publish" --verbosity detailed
Expand Down

0 comments on commit 7cfd42a

Please sign in to comment.