mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Remove pdb's and json's on build. Remove EnsureLoaded call from Entertainment module.
This commit is contained in:
@@ -19,7 +19,7 @@ COPY . .
|
|||||||
RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
|
RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
|
||||||
mkdir /app/modules && \
|
mkdir /app/modules && \
|
||||||
cp /app/TelegramBot.*.dll /app/modules/ && \
|
cp /app/TelegramBot.*.dll /app/modules/ && \
|
||||||
rm -f /app/TelegramBot.*.dll
|
rm -f /app/TelegramBot.*.dll /app/TelegramBot.*.pdb /app/TelegramBot.*.json
|
||||||
|
|
||||||
# Now reuse image with only runtime
|
# Now reuse image with only runtime
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-arm64v8
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-arm64v8
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ COPY . .
|
|||||||
RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
|
RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
|
||||||
mkdir /app/modules && \
|
mkdir /app/modules && \
|
||||||
cp /app/TelegramBot.*.dll /app/modules/ && \
|
cp /app/TelegramBot.*.dll /app/modules/ && \
|
||||||
rm -f /app/TelegramBot.*.dll
|
rm -f /app/TelegramBot.*.dll /app/TelegramBot.*.pdb /app/TelegramBot.*.json
|
||||||
|
|
||||||
# Now reuse image with only runtime
|
# Now reuse image with only runtime
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-amd64
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-amd64
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace West.Entertainment
|
|||||||
{
|
{
|
||||||
public Entertainment(Core core) : base(core)
|
public Entertainment(Core core) : base(core)
|
||||||
{
|
{
|
||||||
core.EnsureLoaded<ChatManagement>();
|
// core.EnsureLoaded<ChatManagement>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user