Closed dillonm197 closed 9 months ago
@dillonm197
Are you able to reproduce this issue with Strawberry Shake 13.8.1?
I'm not able to reproduce with 13.8.1 and a simplified Dockerfile:
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /App
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "hc-5995.dll"]
Closing, as no response has been received from the author.
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
dotnet restore
fails for my project when attempting to build via Docker after migrating from Strawberry Shake v12 to v13.OS: ubuntu-20.04
Steps to reproduce
StrawberryShake.Server
v13.0.5FROM start-env AS copy-env WORKDIR /restore
RUN mkdir /restore-directory
RUN --mount=type=bind,target=. \ find . ( -name ".csproj" -o -name ".sln" -o -name "NuGet.Config" -o -name "*.sql" ) \ -exec cp -p --parents '{}' /restore-directory \;
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS restore-env WORKDIR /app
COPY --from=copy-env /restore-directory/ /app/
RUN dotnet restore --no-cache -nowarn:NU1701 \ --use-lock-file \ MyProject/MyProject.csproj \ && dotnet build -nowarn:NU1701 \ --no-restore --nologo -nowarn:NU1701 \ MyProject/MyProject.csproj
...
Additional Context?
No response
Version
13.0.5