dev #9

Merged
mfnefd merged 77 commits from dev into main 2024-12-25 23:49:45 +04:00
2 changed files with 15 additions and 15 deletions
Showing only changes of commit 3ce4d6baf2 - Show all commits

View File

@ -9,20 +9,21 @@ ENV ASPNETCORE_URLS=http://+:5124
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
ARG configuration=Release
WORKDIR /src
COPY ["Cloud/Cloud.csproj", "Cloud/"]
RUN dotnet restore "Cloud/Cloud.csproj"
COPY ["Cloud.csproj", "."]
RUN dotnet restore "./Cloud.csproj"
COPY . .
WORKDIR "/src/Cloud"
RUN dotnet build "Cloud.csproj" -c $configuration -o /app/build
WORKDIR "/src/."
RUN dotnet build "./Cloud.csproj" -c $configuration -o /app/build
FROM build AS publish
ARG configuration=Release
RUN dotnet publish "Cloud.csproj" -c $configuration -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./Cloud.csproj" -c $configuration -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Cloud.dll"]

View File

@ -16,7 +16,6 @@ services:
- "5438:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
driver: local