mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Setup additional locales for our Alpine base image
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user