packages/platform/Dockerfile
FROM node RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y tzdata locales # Set the timezoneRUN echo "Europe/Berlin" | tee /etc/timezone && \ ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \ dpkg-reconfigure -f noninteractive tzdata # Set the locale for UTF-8 supportRUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen && \ update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8ENV LANG en_US.UTF-8ENV LANGUAGE en_US:enENV LC_ALL en_US.UTF-8 # AWS CLI needs the PYTHONIOENCODING environment varialbe to handle UTF-8 correctly:ENV PYTHONIOENCODING=UTF-8 RUN apt-get install -y \ python3 \ python3-pip \ python3-setuptools \ groff \ less \ && pip3 install --upgrade pip \ && apt-get clean RUN pip3 --no-cache-dir install --upgrade awscli ARG NPM_TOKEN WORKDIR /usr/platform RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc COPY package.json . RUN yarn RUN rm -f .npmrc COPY . .