mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
98 lines
2.4 KiB
Text
98 lines
2.4 KiB
Text
FROM debian:buster-slim
|
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
LC_ALL=en_US.UTF-8 \
|
|
NODE_VERSION=v14.15.1
|
|
|
|
RUN set -ex; \
|
|
mkdir -p /etc/resolvconf/resolv.conf.d; \
|
|
echo "nameserver 8.8.8.8" > /etc/resolvconf/resolv.conf.d/tail; \
|
|
apt-get -qq update; \
|
|
apt-get -qqy install --no-install-recommends \
|
|
locales \
|
|
gnupg2 \
|
|
ca-certificates \
|
|
wget \
|
|
sudo \
|
|
vim \
|
|
curl \
|
|
bash \
|
|
xz-utils \
|
|
rlwrap \
|
|
; \
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
|
locale-gen; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
RUN set -ex; \
|
|
apt-get -qq update; \
|
|
apt-get -qqy install \
|
|
imagemagick \
|
|
netpbm \
|
|
potrace \
|
|
gconf-service \
|
|
libasound2 \
|
|
libatk1.0-0 \
|
|
libatk-bridge2.0-0 \
|
|
libcairo2 \
|
|
libcups2 \
|
|
libdbus-1-3 \
|
|
libexpat1 \
|
|
libfontconfig1 \
|
|
libgcc1 \
|
|
libgconf-2-4 \
|
|
libgdk-pixbuf2.0-0 \
|
|
libglib2.0-0 \
|
|
libgtk-3-0 \
|
|
libnspr4 \
|
|
libpango-1.0-0 \
|
|
libpangocairo-1.0-0 \
|
|
libx11-6 \
|
|
libx11-xcb1 \
|
|
libxcb1 \
|
|
libxcb-dri3-0 \
|
|
libxcomposite1 \
|
|
libxcursor1 \
|
|
libxdamage1 \
|
|
libxext6 \
|
|
libxfixes3 \
|
|
libxi6 \
|
|
libxrandr2 \
|
|
libxrender1 \
|
|
libxss1 \
|
|
libxtst6 \
|
|
fonts-liberation \
|
|
libappindicator1 \
|
|
libnss3 \
|
|
libgbm1 \
|
|
; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
RUN set -ex; \
|
|
wget https://github.com/RazrFalcon/svgcleaner/releases/download/v0.9.5/svgcleaner_linux_x86_64_0.9.5.tar.gz; \
|
|
tar xvf svgcleaner_linux_x86_64_0.9.5.tar.gz; \
|
|
mv svgcleaner /usr/local/bin/; \
|
|
rm -rf svgcleaner_linux_x86_64_0.9.5.tar.gz;
|
|
|
|
RUN set -ex; \
|
|
mkdir -p /tmp/node; \
|
|
cd /tmp/node; \
|
|
export PATH="$PATH:/usr/local/nodejs/bin"; \
|
|
wget https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz; \
|
|
tar xvf node-$NODE_VERSION-linux-x64.tar.xz; \
|
|
mv /tmp/node/node-$NODE_VERSION-linux-x64 /usr/local/nodejs; \
|
|
/usr/local/nodejs/bin/npm install -g yarn; \
|
|
rm -rf /tmp/node;
|
|
|
|
WORKDIR /opt/app
|
|
|
|
ADD ./bundle/exporter/ /opt/app/
|
|
|
|
RUN set -ex; \
|
|
export PATH="$PATH:/usr/local/nodejs/bin"; \
|
|
yarn install;
|
|
|
|
CMD ["/usr/local/nodejs/bin/node", "app.js"]
|