2020-01-20 13:03:01 +01:00
|
|
|
FROM debian:buster
|
2018-11-03 09:57:10 +01:00
|
|
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2019-09-20 17:31:03 +02:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2019-06-03 16:53:31 +02:00
|
|
|
|
2020-12-02 09:39:39 +01:00
|
|
|
ENV NODE_VERSION=v14.15.1 \
|
|
|
|
CLOJURE_VERSION=1.10.1.739 \
|
2019-06-03 16:53:31 +02:00
|
|
|
LANG=en_US.UTF-8 \
|
2020-10-07 12:56:06 +02:00
|
|
|
LC_ALL=en_US.UTF-8
|
2019-06-03 16:53:31 +02:00
|
|
|
|
2020-01-20 13:03:01 +01:00
|
|
|
RUN set -ex; \
|
|
|
|
mkdir -p /etc/resolvconf/resolv.conf.d; \
|
2020-10-07 12:56:06 +02:00
|
|
|
echo "nameserver 8.8.8.8" > /etc/resolvconf/resolv.conf.d/tail; \
|
|
|
|
apt-get -qq update; \
|
|
|
|
apt-get -qqy install --no-install-recommends \
|
2019-02-15 22:35:49 +01:00
|
|
|
locales \
|
2019-09-17 16:14:49 +00:00
|
|
|
gnupg2 \
|
2019-02-15 22:35:49 +01:00
|
|
|
ca-certificates \
|
|
|
|
wget \
|
2019-06-05 10:07:01 +00:00
|
|
|
sudo \
|
|
|
|
tmux \
|
|
|
|
vim \
|
|
|
|
curl \
|
2019-02-15 22:35:49 +01:00
|
|
|
bash \
|
|
|
|
git \
|
|
|
|
rlwrap \
|
2020-10-07 12:56:06 +02:00
|
|
|
; \
|
|
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
|
|
|
|
locale-gen; \
|
|
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
|
|
|
|
RUN set -ex; \
|
2020-12-02 09:39:39 +01:00
|
|
|
useradd -m -g users -s /bin/bash penpot; \
|
2020-11-10 12:41:20 +01:00
|
|
|
passwd penpot -d; \
|
|
|
|
echo "penpot ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
2020-10-07 12:56:06 +02:00
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
apt-get -qq update; \
|
|
|
|
apt-get -qqy install --no-install-recommends \
|
2020-01-20 13:03:01 +01:00
|
|
|
python \
|
2019-02-15 22:35:49 +01:00
|
|
|
build-essential \
|
|
|
|
imagemagick \
|
2020-08-05 14:40:44 +02:00
|
|
|
netpbm \
|
|
|
|
potrace \
|
2019-02-15 22:35:49 +01:00
|
|
|
webp \
|
2020-06-02 16:14:23 +02:00
|
|
|
nginx \
|
2020-02-04 12:35:55 +01:00
|
|
|
jq \
|
2020-04-19 19:36:48 +02:00
|
|
|
redis-tools \
|
2019-02-15 22:35:49 +01:00
|
|
|
; \
|
2019-06-05 10:07:01 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*;
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-07-01 10:38:18 +02:00
|
|
|
RUN set -ex; \
|
2020-10-07 12:56:06 +02:00
|
|
|
apt-get -qq update; \
|
|
|
|
apt-get -qqy install \
|
2020-07-01 10:38:18 +02:00
|
|
|
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 \
|
|
|
|
libxcomposite1 \
|
|
|
|
libxcursor1 \
|
|
|
|
libxdamage1 \
|
|
|
|
libxext6 \
|
|
|
|
libxfixes3 \
|
|
|
|
libxi6 \
|
|
|
|
libxrandr2 \
|
|
|
|
libxrender1 \
|
|
|
|
libxss1 \
|
|
|
|
libxtst6 \
|
|
|
|
fonts-liberation \
|
|
|
|
libappindicator1 \
|
|
|
|
libnss3 \
|
|
|
|
libgbm1 \
|
|
|
|
; \
|
|
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
|
2020-09-21 16:02:37 +02:00
|
|
|
RUN set -ex; \
|
2020-10-07 12:56:06 +02:00
|
|
|
mkdir -p /usr/share/man/man1; \
|
|
|
|
mkdir -p /usr/share/man/man7; \
|
|
|
|
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -; \
|
|
|
|
echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main" >> /etc/apt/sources.list.d/adoptopenjdk.list; \
|
2020-09-21 16:02:37 +02:00
|
|
|
apt-get -qq update; \
|
2020-10-07 12:56:06 +02:00
|
|
|
apt-get -qqy install adoptopenjdk-15-hotspot; \
|
2020-09-21 16:02:37 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*; \
|
|
|
|
wget "https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
chmod +x "linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
"./linux-install-$CLOJURE_VERSION.sh"; \
|
|
|
|
rm -rf "linux-install-$CLOJURE_VERSION.sh"
|
2020-02-04 12:35:55 +01:00
|
|
|
|
2020-09-21 16:02:37 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -; \
|
|
|
|
echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" >> /etc/apt/sources.list.d/postgresql.list; \
|
|
|
|
apt-get -qq update; \
|
2020-10-21 12:41:11 +02:00
|
|
|
apt-get -qqy install postgresql-client-13; \
|
2020-02-04 12:35:55 +01:00
|
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
|
2020-08-05 15:59:26 +02:00
|
|
|
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;
|
|
|
|
|
2020-09-21 16:02:37 +02:00
|
|
|
COPY files/phantomjs-mock /usr/bin/phantomjs
|
2020-10-07 12:56:06 +02:00
|
|
|
COPY files/bashrc /root/.bashrc
|
|
|
|
COPY files/vimrc /root/.vimrc
|
|
|
|
COPY files/tmux.conf /root/.tmux.conf
|
2019-06-03 16:53:31 +02:00
|
|
|
|
2020-12-02 09:39:39 +01:00
|
|
|
WORKDIR /home
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-01-20 13:03:01 +01:00
|
|
|
RUN set -ex; \
|
2020-12-02 09:39:39 +01:00
|
|
|
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; \
|
|
|
|
chown -R root /usr/local/nodejs; \
|
|
|
|
/usr/local/nodejs/bin/npm install -g yarn; \
|
|
|
|
/usr/local/nodejs/bin/yarn global add clj-kondo; \
|
|
|
|
rm -rf /tmp/node;
|
2020-03-29 14:33:54 +02:00
|
|
|
|
|
|
|
EXPOSE 3447
|
|
|
|
EXPOSE 3448
|
2020-01-20 13:03:01 +01:00
|
|
|
EXPOSE 3449
|
|
|
|
EXPOSE 6060
|
|
|
|
EXPOSE 9090
|
|
|
|
|
2020-12-02 09:39:39 +01:00
|
|
|
COPY files/start-tmux.sh /home/start-tmux.sh
|
|
|
|
COPY files/entrypoint.sh /home/entrypoint.sh
|
|
|
|
COPY files/init.sh /home/init.sh
|
|
|
|
|
2020-10-07 12:56:06 +02:00
|
|
|
ENTRYPOINT ["/home/entrypoint.sh"]
|
2020-09-07 13:38:17 +02:00
|
|
|
CMD ["/home/init.sh"]
|