Skip to content

Commit

Permalink
Make dockerfile more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
anayden committed Oct 15, 2021
1 parent a86b751 commit 62e504d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ ARG BASE_DIR=/opt/neuro/web-shell
RUN mkdir -p $BASE_DIR

COPY requirements/apt.txt requirements/python.txt $BASE_DIR/
RUN apt update -qq && \
RUN apt-get update -qq && \
export DEBIAN_FRONTEND=noninteractive && \
xargs -ra $BASE_DIR/apt.txt apt install -qq -y --no-install-recommends && \
apt-get install -qq -y --no-install-recommends software-properties-common && \
xargs -ra $BASE_DIR/apt.txt apt-get install -qq -y --no-install-recommends && \
ln -s $(which python3) /usr/bin/python && \
python -m pip install -U pip && \
pip3 install -U --no-cache-dir -r $BASE_DIR/python.txt && \
Expand Down

0 comments on commit 62e504d

Please # to comment.