mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Remove json deletion from Dockerfile.
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 /app/TelegramBot.*.pdb /app/TelegramBot.*.json
|
rm -f /app/TelegramBot.*.dll /app/TelegramBot.*.pdb
|
||||||
|
|
||||||
# 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 /app/TelegramBot.*.pdb /app/TelegramBot.*.json
|
rm -f /app/TelegramBot.*.dll /app/TelegramBot.*.pdb
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user