Fixed docker build

This commit is contained in:
Toastie 2025-01-16 02:25:32 +13:00
parent f9b69383dc
commit ce85159f00
Signed by: toastie_t0ast
GPG key ID: 493323FA26CD7A2F

View file

@ -21,6 +21,7 @@ WORKDIR /source/src/EllieBot
# Build and publish the EllieBot project, then clean up unnecessary files # Build and publish the EllieBot project, then clean up unnecessary files
RUN set -xe; \ RUN set -xe; \
dotnet --version; \ dotnet --version; \
dotnet restore; \
dotnet publish -c Release -o /app --no-restore; \ dotnet publish -c Release -o /app --no-restore; \
mv /app/data /app/data_init; \ mv /app/data /app/data_init; \
rm -Rf libopus* libsodium* opus.* runtimes/win* runtimes/osx* runtimes/linux-arm* runtimes/linux-mips*; \ rm -Rf libopus* libsodium* opus.* runtimes/win* runtimes/osx* runtimes/linux-arm* runtimes/linux-mips*; \