Skip to content

Commit

Permalink
fix: copy appsetting and dockerfile to 8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy authored and ArneD committed Mar 15, 2024
1 parent 2c59cd7 commit 4900d2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/Ops.Web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0.3

# create group & user
RUN addgroup --gid 1000 --system app && adduser --uid 1000 -system app --gid 1000
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.2

# create work dir and set permissions as WORKDIR sets permissions as root
RUN mkdir /app && chown -R app:app /app
Expand Down
2 changes: 2 additions & 0 deletions src/Ops.Web/Ops.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
</PropertyGroup>

<ItemGroup>
<Content Include="appsettings.json" CopyToOutputDirectory="Always" />
<Content Include="appsettings.*.json" CopyToOutputDirectory="Always" />
<Content Include="Dockerfile" CopyToOutputDirectory="Always" />
<Content Include="init.sh" CopyToOutputDirectory="Always" />
</ItemGroup>
Expand Down

0 comments on commit 4900d2e

Please sign in to comment.