2020-02-24 19:14:46 +03:00
|
|
|
FROM node:12
|
|
|
|
|
2020-02-25 17:58:28 +03:00
|
|
|
ARG upx_version="3.94"
|
2020-02-24 19:14:46 +03:00
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
zip \
|
|
|
|
xvfb \
|
2020-02-25 17:58:28 +03:00
|
|
|
&& curl -Lo /tmp/upx-${upx_version}.tar.xz https://github.com/upx/upx/releases/download/v${upx_version}/upx-${upx_version}-amd64_linux.tar.xz \
|
|
|
|
&& xz -d -c /tmp/upx-${upx_version}.tar.xz \
|
|
|
|
| tar -xOf - upx-${upx_version}-amd64_linux/upx > /bin/upx \
|
|
|
|
&& chmod a+x /bin/upx \
|
2020-02-24 19:14:46 +03:00
|
|
|
&& apt-get -y auto-remove \
|
|
|
|
&& apt-get -y clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& rm -rf /usr/share/doc/ \
|
|
|
|
&& rm -rf /usr/share/man/ \
|
2020-02-25 17:58:28 +03:00
|
|
|
&& rm -rf /usr/share/locale/
|