Fix run on armv7

This commit is contained in:
Dmitrij Fedorenko 2021-08-08 14:50:37 +03:00
parent dcc71aa09f
commit 24f4a7f93a
No known key found for this signature in database
GPG Key ID: 75CEB878F15507A5
1 changed files with 7 additions and 0 deletions

View File

@ -56,6 +56,13 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/*
ENV LANG=en_US.utf8
ENV NODE_ENV=production
# Workaround for https://github.com/nodejs/node/issues/37219
RUN test $(uname -m) != armv7l || ( \
apt-get update \
&& apt-get install -y libatomic1 \
&& rm -rf /var/lib/apt/lists/* \
)
# install node
#ENV PATH=/usr/local/lib/nodejs/bin:$PATH
#COPY --from=build /usr/local/lib/nodejs /usr/local/lib/nodejs