feat: implement database initialization and admin user setup

This commit is contained in:
shiyu
2025-05-19 21:02:43 +08:00
parent 7a93a03903
commit f8bc7baede
4 changed files with 120 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ RUN dotnet publish "./Foxel.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:U
FROM base AS final
WORKDIR /app
# Format: Host=yourhost;Username=foxel;Password=foxel;Database=foxel
ENV DEFAULT_CONNECTION="YourDefaultConnectionStringHere"
COPY --from=publish /app/publish .
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*