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-06-03 16:53:31 +02:00
|
|
|
ARG EXTERNAL_UID=1000
|
2019-09-20 17:31:03 +02:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2019-06-03 16:53:31 +02:00
|
|
|
|
2020-01-11 15:59:31 +00:00
|
|
|
ENV NODE_VERSION=v12.14.1 \
|
2019-12-18 10:54:28 +01:00
|
|
|
CLOJURE_VERSION=1.10.1.492 \
|
2019-06-03 16:53:31 +02:00
|
|
|
LANG=en_US.UTF-8 \
|
2019-06-05 10:41:12 +02:00
|
|
|
LC_ALL=C.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; \
|
|
|
|
echo "nameserver 8.8.8.8" > /etc/resolvconf/resolv.conf.d/tail;
|
|
|
|
|
2019-02-15 22:35:49 +01:00
|
|
|
RUN set -ex; \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -yq \
|
|
|
|
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 \
|
|
|
|
zsh \
|
2019-02-15 22:35:49 +01:00
|
|
|
bash \
|
|
|
|
git \
|
|
|
|
rlwrap \
|
2020-01-20 13:03:01 +01:00
|
|
|
python \
|
2019-02-15 22:35:49 +01:00
|
|
|
build-essential \
|
|
|
|
imagemagick \
|
|
|
|
webp \
|
2020-01-20 13:03:01 +01:00
|
|
|
openjdk-11-jdk \
|
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
|
|
|
|
|
|
|
COPY files/bashrc /root/.bashrc
|
|
|
|
COPY files/vimrc /root/.vimrc
|
|
|
|
|
2019-02-15 23:38:14 +01:00
|
|
|
RUN set -ex; \
|
2019-06-05 10:07:01 +00:00
|
|
|
useradd -m -g users -s /bin/zsh -u $EXTERNAL_UID uxbox; \
|
2019-02-15 23:09:04 +01:00
|
|
|
passwd uxbox -d; \
|
2019-02-15 23:38:14 +01:00
|
|
|
echo "uxbox ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
|
|
|
2019-06-03 16:53:31 +02:00
|
|
|
RUN set -ex; \
|
2019-06-11 01:01:55 +02:00
|
|
|
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"
|
2019-06-03 16:53:31 +02:00
|
|
|
|
2016-11-20 20:08:24 +01:00
|
|
|
USER uxbox
|
2019-02-15 23:38:14 +01:00
|
|
|
WORKDIR /home/uxbox
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-01-20 13:03:01 +01:00
|
|
|
COPY files/package.json /home/uxbox/package.json
|
2016-11-20 20:08:24 +01:00
|
|
|
COPY files/bashrc /home/uxbox/.bashrc
|
2019-06-05 10:41:12 +02:00
|
|
|
COPY files/zshrc /home/uxbox/.zshrc
|
2016-11-20 20:08:24 +01:00
|
|
|
COPY files/vimrc /home/uxbox/.vimrc
|
2019-12-18 10:54:28 +01:00
|
|
|
COPY files/start-tmux.sh /home/uxbox/start-tmux.sh
|
2016-11-20 20:08:24 +01:00
|
|
|
COPY files/tmux.conf /home/uxbox/.tmux.conf
|
2019-06-03 16:53:31 +02:00
|
|
|
COPY files/entrypoint.sh /home/uxbox/
|
2019-09-20 17:31:03 +02:00
|
|
|
COPY files/init.sh /home/uxbox/
|
2016-11-20 20:08:24 +01:00
|
|
|
|
2020-01-20 13:03:01 +01:00
|
|
|
RUN set -ex; \
|
|
|
|
git clone https://github.com/creationix/nvm.git .nvm; \
|
|
|
|
bash -c "source .nvm/nvm.sh && nvm install $NODE_VERSION"; \
|
|
|
|
bash -c "source .nvm/nvm.sh && nvm alias default $NODE_VERSION"; \
|
|
|
|
bash -c "source .nvm/nvm.sh && nvm use default";
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
bash -c "source .nvm/nvm.sh && npm install";
|
|
|
|
|
|
|
|
EXPOSE 3449
|
|
|
|
EXPOSE 6060
|
|
|
|
EXPOSE 9090
|
|
|
|
|
2019-06-05 10:41:12 +02:00
|
|
|
ENTRYPOINT ["zsh", "/home/uxbox/entrypoint.sh"]
|
2019-12-18 10:54:28 +01:00
|
|
|
CMD ["/home/uxbox/init.sh"]
|