Prepare Coolify deployment

This commit is contained in:
Michal Vrba
2026-10-19 15:52:13 +02:00
parent bdd2f8dc48
commit a91a8939a6
3 changed files with 58 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
WORKDIR /src
COPY src/CiselnaVyprava/CiselnaVyprava.csproj src/CiselnaVyprava/
RUN dotnet restore src/CiselnaVyprava/CiselnaVyprava.csproj \
--source https://api.nuget.org/v3/index.json
COPY src/ src/
RUN dotnet publish src/CiselnaVyprava/CiselnaVyprava.csproj \
--configuration Release \
--output /app/publish \
--no-restore
FROM nginx:1.29-alpine AS final
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/publish/wwwroot /usr/share/nginx/html
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget --quiet --spider http://127.0.0.1:8080/ || exit 1