6 Commits
Author SHA1 Message Date
khwezi c36ff28a84 Merge pull request 'Removed user commands from dockerfile' (#6) from migration into master
Reviewed-on: #6
2026-05-09 17:30:16 +02:00
khwezi 5c0d8430f6 Removed user commands from dockerfile
continuous-integration/drone/pr Build is passing
2026-05-09 17:29:40 +02:00
khwezi 0c24613dd3 Merge pull request 'Fixed dockerfile' (#5) from migration into master
Reviewed-on: #5
2026-05-09 17:24:15 +02:00
khwezi 3b74138e9c Fixed dockerfile
continuous-integration/drone/pr Build is failing
2026-05-09 17:23:45 +02:00
khwezi 8bcd0f60c3 Merge pull request 'Fixed restore commands' (#4) from migration into master
Reviewed-on: #4
2026-05-09 17:20:20 +02:00
khwezi ccf49d79fc Fixed restore commands
continuous-integration/drone/pr Build is failing
2026-05-09 17:19:55 +02:00
2 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ steps:
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet restore LiteCharmsShop.slnx
- dotnet build LiteCharms.slnx -c Release
- dotnet build LiteCharmsShop.slnx -c Release
- name: dotnet-test
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet restore LiteCharmsShop.slnx
- dotnet test LiteCharms.slnx -c Release --no-restore
- dotnet test LiteCharmsShop.slnx -c Release --no-restore
trigger:
event: [ pull_request ]
+3 -8
View File
@@ -2,24 +2,19 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["../nuget.config", "./"]
COPY ["../Shop/Shop.csproj", "Shop/"]
COPY ["nuget.config", "./"]
COPY ["Shop/Shop.csproj", "Shop/"]
RUN dotnet restore "Shop/Shop.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "../Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Stage 2: Final Image
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
RUN addgroup --system --gid 1000 appgroup && \
adduser --system --uid 1000 --ingroup appgroup appuser
EXPOSE 8080
EXPOSE 8081
COPY --from=build /app/publish .
RUN chown -R appuser:appgroup /app
USER appuser
ENTRYPOINT ["dotnet", "Shop.dll"]