Skip to content

Commit

Permalink
Update dotnet-6.0.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk authored Oct 20, 2023
1 parent 5ad0cfe commit 32c485c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dockerfiles/dotnet-6.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ RUN dotnet run --project . --configuration Release "$@" # This saves nuget packa
RUN rm /app/src/Program.cs

# This seems to cause a caching issue with the dotnet build command, where contents from the removed /src/Program.cs are used
# RUN mkdir /app-cached
# RUN mv /app/obj /app-cached/obj
# RUN mv /app/bin /app-cached/bin
RUN rm -rf /app/obj
RUN rm -rf /app/bin

RUN echo "cd \${CODECRAFTERS_SUBMISSION_DIR} && dotnet build --configuration Release ." > /codecrafters-precompile.sh
RUN chmod +x /codecrafters-precompile.sh
Expand Down

0 comments on commit 32c485c

Please sign in to comment.