initial commit

This commit is contained in:
2026-07-21 10:00:08 +07:00
commit 7344144e20
282 changed files with 41294 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# =====================================================================
# Dockerfile untuk ASP.NET Core Razor Pages .NET 10
# =====================================================================
# Multi-stage build:
# Stage 1: Build aplikasi
# Stage 2: Run production
# =====================================================================
# ---- STAGE 1: BUILD ----
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
# Copy csproj dan restore dependencies (cache layer)
COPY *.csproj .
RUN dotnet restore
# Copy semua source code dan build
COPY . .
RUN dotnet publish -c Release -o /app --no-restore
# ---- STAGE 2: RUN ----
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
# Copy hasil build dari stage 1
COPY --from=build /app .
# Set environment ke Production
ENV ASPNETCORE_ENVIRONMENT=Production
ENV ASPNETCORE_URLS=http://+:8080
# Expose port
EXPOSE 8080
# Jalankan aplikasi
ENTRYPOINT ["dotnet", "Indotalent.dll"]