Compare commits
12 Commits
65a64bf63b
...
kub-stage
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c528aba48 | ||
|
|
380b4788dd | ||
|
|
0395c74041 | ||
|
|
0f20d216b6 | ||
| baf984a942 | |||
| 2b07cc2270 | |||
|
|
b51a4b51cc | ||
|
|
410f31671d | ||
|
|
1f9580cd6e | ||
|
|
39c1c979db | ||
|
|
8eac688ad9 | ||
|
|
07be693b92 |
@@ -34,7 +34,7 @@ jobs:
|
||||
mkdir -p /etc/docker
|
||||
cat > /etc/docker/daemon.json << 'DAEMON'
|
||||
{
|
||||
"insecure-registries": ["194.5.195.53:30080", "gitea-svc:3000"]
|
||||
"insecure-registries": ["git.foursat.afrino.co", "gitea-svc:3000"]
|
||||
}
|
||||
DAEMON
|
||||
mkdir -p ~/.docker
|
||||
|
||||
15
Dockerfile
15
Dockerfile
@@ -1,15 +0,0 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/*.sln ./ 2>/dev/null || true
|
||||
COPY src/*/*.csproj ./
|
||||
RUN for file in *.csproj; do mkdir -p "${file%.*}" && mv "$file" "${file%.*}/"; done 2>/dev/null || true
|
||||
RUN dotnet restore "FrontOffice/FrontOffice.csproj" || dotnet restore
|
||||
COPY src/ ./
|
||||
RUN dotnet publish "FrontOffice/FrontOffice.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
ENV ASPNETCORE_URLS=http://+:8080
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["dotnet", "FrontOffice.dll"]
|
||||
1
README.md
Normal file
1
README.md
Normal file
@@ -0,0 +1 @@
|
||||
# Test multi-remote push Sun Dec 7 19:09:00 UTC 2025
|
||||
@@ -1,24 +1,26 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy NuGet config and project file
|
||||
COPY ["FrontOffice.Main/NuGet.config", "NuGet.config"]
|
||||
COPY ["FrontOffice.Main/FrontOffice.Main.csproj", "FrontOffice.Main/"]
|
||||
RUN dotnet restore "FrontOffice.Main/FrontOffice.Main.csproj" --configfile NuGet.config
|
||||
COPY . .
|
||||
WORKDIR "/src/FrontOffice.Main"
|
||||
RUN dotnet publish "./FrontOffice.Main.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM nginx:alpine AS final
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /app/publish/wwwroot .
|
||||
COPY <<'NGINX_CONF' /etc/nginx/conf.d/default.conf
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
NGINX_CONF
|
||||
# Restore dependencies
|
||||
RUN dotnet restore "FrontOffice.Main/FrontOffice.Main.csproj" --configfile NuGet.config
|
||||
|
||||
# Copy all source code
|
||||
COPY . .
|
||||
|
||||
# Build and publish
|
||||
WORKDIR "/src/FrontOffice.Main"
|
||||
RUN dotnet publish "FrontOffice.Main.csproj" -c Release -o /app/publish
|
||||
|
||||
# Runtime stage - aspnet for Blazor Server
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:80
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["dotnet", "FrontOffice.Main.dll"]
|
||||
|
||||
Reference in New Issue
Block a user