Permalink
Browse files

perf(docker): update default Dockerfile for abstruse image

  • Loading branch information...
jkuri committed Aug 3, 2017
1 parent 28451e9 commit a23acf308e329ad7f63f3960be172a937200700d
Showing with 1 addition and 64 deletions.
  1. +1 −30 src/files/Dockerfile
  2. +0 −34 src/files/xvfb
@@ -1,31 +1,2 @@
FROM ubuntu:17.04
FROM jkuri/abstruse

RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN echo 'export PS1="> "' > /root/.bashrc
RUN apt-get update && apt-get install -y curl apt-transport-https wget rsync apt-utils
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN apt-get update
RUN apt-get install -y build-essential ca-certificates git libssl-dev python xvfb fluxbox google-chrome-stable firefox sudo

RUN export CHROME_BIN=google-chrome-stable
COPY xvfb /etc/init.d/xvfb
RUN chmod a+x /etc/init.d/xvfb

RUN useradd -m abstruse
RUN usermod -aG sudo abstruse
RUN echo 'export PS1="> "' >> /home/abstruse/.bashrc
RUN echo '. /home/abstruse/.nvm/nvm.sh' >> /home/abstruse/.bashrc
RUN echo "abstruse ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

USER abstruse
RUN mkdir /home/abstruse/build
WORKDIR /home/abstruse/build

RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
&& export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" \
&& source $NVM_DIR/nvm.sh \
&& nvm install node

EXPOSE 22 5900 5800

This file was deleted.

Oops, something went wrong.

0 comments on commit a23acf3

Please sign in to comment.