Skip to content

Commit a23acf3

Browse files
committed
perf(docker): update default Dockerfile for abstruse image
1 parent 28451e9 commit a23acf3

File tree

2 files changed

+1
-64
lines changed

2 files changed

+1
-64
lines changed

src/files/Dockerfile

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,2 @@
1-
FROM ubuntu:17.04
1+
FROM jkuri/abstruse
22

3-
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
4-
RUN echo 'export PS1="> "' > /root/.bashrc
5-
RUN apt-get update && apt-get install -y curl apt-transport-https wget rsync apt-utils
6-
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
7-
RUN sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
8-
RUN apt-get update
9-
RUN apt-get install -y build-essential ca-certificates git libssl-dev python xvfb fluxbox google-chrome-stable firefox sudo
10-
11-
RUN export CHROME_BIN=google-chrome-stable
12-
COPY xvfb /etc/init.d/xvfb
13-
RUN chmod a+x /etc/init.d/xvfb
14-
15-
RUN useradd -m abstruse
16-
RUN usermod -aG sudo abstruse
17-
RUN echo 'export PS1="> "' >> /home/abstruse/.bashrc
18-
RUN echo '. /home/abstruse/.nvm/nvm.sh' >> /home/abstruse/.bashrc
19-
RUN echo "abstruse ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
20-
21-
USER abstruse
22-
RUN mkdir /home/abstruse/build
23-
WORKDIR /home/abstruse/build
24-
25-
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
26-
&& export NVM_DIR="$HOME/.nvm" \
27-
&& [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" \
28-
&& source $NVM_DIR/nvm.sh \
29-
&& nvm install node
30-
31-
EXPOSE 22 5900 5800

src/files/xvfb

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)