Some checks failed
Build and deploy / Publish image (push) Failing after 55s
26 lines
884 B
Docker
26 lines
884 B
Docker
FROM mcr.microsoft.com/dotnet/aspnet:8.0.10-alpine3.2 AS base
|
|
USER root
|
|
RUN apk update && apk add --no-cache curl icu tzdata musl-locales musl-locales-lang
|
|
USER $APP_UID
|
|
WORKDIR /app
|
|
EXPOSE 80
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
ARG BUILD_CONFIGURATION=Release
|
|
WORKDIR /src
|
|
COPY ["Otchinslator.csproj", "CyberGardenLK.csproj"]
|
|
RUN dotnet restore "Otchinslator.csproj"
|
|
COPY . .
|
|
WORKDIR "/src"
|
|
RUN dotnet build "Otchinslator.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
|
|
|
FROM build AS publish
|
|
ARG BUILD_CONFIGURATION=Release
|
|
RUN dotnet publish "Otchinslator.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
# HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD curl --fail http://localhost:8000/health || exit 1
|
|
COPY --from=publish /app/publish .
|
|
ENTRYPOINT ["dotnet", "Otchinslator.dll"]
|