This commit is contained in:
West14
2022-01-03 15:28:10 +02:00
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -25,4 +25,18 @@ RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-arm64v8
WORKDIR /user
COPY --from=build /app /app
ENV MUSL_LOCPATH /usr/share/i18n/locales/musl
RUN apk add --no-cache cmake make musl-dev gcc gettext-dev libintl \
&& wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
&& unzip musl-locales-master.zip \
&& cd musl-locales-master \
&& cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
&& cd .. && rm -r musl-locales-master
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8
ENTRYPOINT ["dotnet", "/app/TelegramBot.dll"]
+14
View File
@@ -25,4 +25,18 @@ RUN dotnet publish -c release -o /app --no-restore Kruzya.TelegramBot.sln && \
FROM mcr.microsoft.com/dotnet/aspnet:5.0.13-alpine3.14-amd64
WORKDIR /user
COPY --from=build /app /app
ENV MUSL_LOCPATH /usr/share/i18n/locales/musl
RUN apk add --no-cache cmake make musl-dev gcc gettext-dev libintl \
&& wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
&& unzip musl-locales-master.zip \
&& cd musl-locales-master \
&& cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
&& cd .. && rm -r musl-locales-master
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8
ENTRYPOINT ["dotnet", "/app/TelegramBot.dll"]