diff --git a/api/.dockerignore b/api/.dockerignore index 0808c4a..69343f7 100644 --- a/api/.dockerignore +++ b/api/.dockerignore @@ -3,6 +3,10 @@ ## ## Get latest from `dotnet new gitignore` +# Solution files +*.sln +*.slnx + # dotenv files .env diff --git a/api/Dockerfile b/api/Dockerfile index 36afc26..33a2c5d 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -12,4 +12,8 @@ WORKDIR /app COPY --from=build /out/* . +EXPOSE 8080 +HEALTHCHECK --interval=60s --retries=3 --start-period=5s --timeout=10s \ + CMD wget --no-verbose --tries 1 --spider http://localhost:8080/health || exit 1 + ENTRYPOINT [ "dotnet", "BonchCalendar.dll" ]