Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install 'locales' on alpine (node:8-latest) Docker image

I'm trying to use alpine (nodeJS) docker image, but I do get the error /bin/sh: apt-get: not found. So what would be the equivalent commands for doing this in alpine?

FROM node:8.6-alpine
ARG APP_LOCALE=en_US
ARG APP_CHARSET=UTF-8

RUN apt-get install locales
RUN locale-gen ${APP_LOCALE}
RUN localedef ${APP_LOCALE}.${APP_CHARSET} -i ${APP_LOCALE} -f ${APP_CHARSET}
like image 940
user3142695 Avatar asked Oct 23 '25 09:10

user3142695


1 Answers

Alpine linux uses another package manager. https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management

like image 132
RidgeA Avatar answered Oct 25 '25 19:10

RidgeA