Skip to content

Commit

Permalink
Update Dockerfile to match the latest installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
JJK96 committed Feb 16, 2024
1 parent c63c89d commit b9571b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Analyser/scripts/postinstall
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
(cd node_modules/jalangi2/ && npm install)
(git clone git@github.com:ExpoSEJS/z3javascript.git node_modules/z3javascript && cd node_modules/z3javascript && npm install)
(git clone https://github.com/ExpoSEJS/z3javascript.git node_modules/z3javascript && cd node_modules/z3javascript && npm install)

19 changes: 16 additions & 3 deletions Dockerfile
@@ -1,8 +1,14 @@
FROM debian:latest

#Install SSH, Xvfb etc
RUN apt update && apt install --assume-yes git bash openssh-server clang build-essential vim curl xvfb python3 python3-pip libgtk-3-0 tmux libxss1 libgconf-2-4 libnss3 libasound2
RUN pip3 install mitmproxy==4.0.4
RUN apt update && apt install --assume-yes git bash openssh-server clang build-essential vim curl xvfb python3 python3-pip python3-venv libgtk-3-0 tmux libxss1 libgconf-2-4 libnss3 libasound2 unzip

# Setup VENV https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

RUN pip3 install mitmproxy
RUN useradd --create-home --shell /bin/bash expose
RUN echo 'expose:expose' | chpasswd
RUN mkdir -p /run/sshd
Expand All @@ -14,10 +20,17 @@ RUN ssh-keygen -A

#Install ExpoSE into /source/
ADD . /source
USER root
RUN chown -R expose /source; chmod -R 777 /source/
USER expose
WORKDIR /source
RUN ./scripts/docker_setup
ENV NODE_VERSION=14.16.1
RUN curl -fsSL https://fnm.vercel.app/install | bash
ENV PATH="/home/expose/.local/share/fnm:$PATH"
RUN echo "$PATH"
RUN eval $(fnm env) && fnm install $NODE_VERSION && fnm alias default $NODE_VERSION && fnm use default
ENV PATH="/home/expose/.local/share/fnm/aliases/default/bin:$PATH"
RUN ./install
RUN nohup Xvfb :1 -screen 0 800x600x24 &
ENV DISPLAY 1
USER root
Expand Down

0 comments on commit b9571b0

Please sign in to comment.