Skip to content

Commit 9130de9

Browse files
philippgillew4nderlust
authored andcommitted
Improve Dockerfile (ludwig-ai#106)
- Added newlines for readability - Added depth parameter to git clone so not the full git history is cloned - Combined git clone and Ludwig installation into one layer
1 parent c46cc95 commit 9130de9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
FROM tensorflow/tensorflow:latest-py3
22

3-
RUN apt-get install -y --no-install-recommends git
4-
RUN git clone https://github.com/uber/ludwig.git
5-
RUN cd ludwig/ && pip install -r requirements.txt && python -m spacy download en && python setup.py install
3+
RUN apt-get install -y --no-install-recommends \
4+
git
5+
RUN git clone --depth=1 https://github.com/uber/ludwig.git \
6+
&& cd ludwig/ \
7+
&& pip install -r requirements.txt \
8+
&& python -m spacy download en \
9+
&& python setup.py install
610

711
WORKDIR /data
812

0 commit comments

Comments
 (0)