Skip to content

Commit ba9f734

Browse files
committed
chaining with && for slightly fewer RUN commands
1 parent a245527 commit ba9f734

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile.ubuntu-2004

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ MAINTAINER MIT Probabilistic Computing Project
44
# Avoid tzdata configuration dialog
55
ENV DEBIAN_FRONTEND=noninteractive
66

7-
RUN apt update -qq && apt install -qq -y \
7+
RUN apt-get update -qq && \
8+
apt-get install -qq -y \
89
hdf5-tools \
910
git \
1011
python3-dev \
@@ -14,12 +15,11 @@ RUN apt update -qq && apt install -qq -y \
1415
zlib1g-dev && \
1516
rm -rf /var/lib/apt/lists/*
1617

17-
RUN git config --global user.name "Gen User"
18-
RUN git config --global user.email "[email protected]"
18+
RUN git config --global user.name "Gen User" && \
19+
git config --global user.email "[email protected]"
1920

20-
# Could use virtual environment - "RUN virtualenv -p /usr/bin/python3 /venv" and ". /venv/bin/activate" && in front of pip and julia commands
21-
RUN python3 -m pip install --upgrade pip
22-
RUN python3 -m pip install jupyter jupytext matplotlib tensorflow torch
21+
RUN python3 -m pip install --upgrade pip && \
22+
python3 -m pip install jupyter jupytext matplotlib tensorflow torch
2323

2424
# Specify Julia version. Find current version on https://julialang.org/downloads/
2525
ARG JULIA_VERSION_SHORT="1.5"

0 commit comments

Comments
 (0)