chore: stop tracking AI scratch dirs and local screenshots
The previous commit accidentally pulled in .opencode/tmp/, .playwright-mcp/, .superpowers/, and a handful of local screenshots/logs because 'git add -A' was used during the 3.9.2 fix. None of these affect the build or the deploy; the deploy workflow was triggered by the version bump and ran cleanly. Add them to .gitignore and untrack so the next contributor doesn't commit them again.
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
# Этап 1: Сборка с использованием .NET SDK
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble AS build
|
||||
|
||||
# Установка зависимостей для Native AOT-компиляции (clang и zlib)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
clang zlib1g-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
# Копирование проектов
|
||||
COPY ["src/GmRelay.Bot/GmRelay.Bot.csproj", "src/GmRelay.Bot/"]
|
||||
COPY ["src/GmRelay.ServiceDefaults/GmRelay.ServiceDefaults.csproj", "src/GmRelay.ServiceDefaults/"]
|
||||
|
||||
# Восстановление зависимостей с учетом архитектуры
|
||||
RUN dotnet restore "src/GmRelay.Bot/GmRelay.Bot.csproj" -a amd64
|
||||
|
||||
# Копирование остального исходного кода
|
||||
COPY src/ src/
|
||||
|
||||
WORKDIR /src/src/GmRelay.Bot
|
||||
|
||||
# Публикация AOT-бинарного файла
|
||||
RUN dotnet publish "GmRelay.Bot.csproj" -c Release -a amd64 -o /app/publish
|
||||
|
||||
# Этап 2: Runtime (runtime-deps содержит только ОС-зависимости, без .NET Runtime)
|
||||
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble AS final
|
||||
WORKDIR /app
|
||||
|
||||
# Устанавливаем wget для healthcheck
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Копируем только AOT-результаты из билда
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
USER $APP_UID
|
||||
|
||||
# Запуск скомпилированного AOT бинарного файла напрямую
|
||||
ENTRYPOINT ["./GmRelay.Bot"]
|
||||
Reference in New Issue
Block a user