Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

feat : use --no-cache-dir flag to pip in dockerfiles to save space #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions dockerfiles/cuda_torch03
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ ENV LC_ALL en_US.UTF-8
RUN conda install -c pytorch pytorch=0.3 cuda90

# Revtok
RUN pip install -e git+https://github.com/jekbradbury/revtok.git#egg=revtok
RUN pip install --no-cache-dir -e git+https://github.com/jekbradbury/revtok.git#egg=revtok

# torchtext requirements
RUN pip install tqdm
RUN pip install nltk==3.2.5
RUN pip install --no-cache-dir tqdm
RUN pip install --no-cache-dir nltk==3.2.5

# tensorboard
RUN pip install tensorboardX
RUN pip install tensorboard
RUN pip install tensorflow
RUN pip install python-dateutil
RUN pip install --no-cache-dir tensorboardX
RUN pip install --no-cache-dir tensorboard
RUN pip install --no-cache-dir tensorflow
RUN pip install --no-cache-dir python-dateutil

# additional python packages
RUN pip install ujson
RUN pip install -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN pip install --no-cache-dir ujson
RUN pip install --no-cache-dir -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN cd /src/pyrouge/pyrouge/../tools/ROUGE-1.5.5/data/ && rm WordNet-2.0.exc.db && ./WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db && chmod 777 WordNet-2.0.exc.db
#RUN pip install lxml
RUN pip install sacrebleu
#RUN pip install --no-cache-dir lxml
RUN pip install --no-cache-dir sacrebleu

# Install packages for XML processing
RUN apt-get install --yes \
Expand All @@ -61,10 +61,10 @@ RUN apt-get install --yes \
python-lxml

# WikISQL evaluation
RUN pip install records
RUN pip install babel
RUN pip install tabulate
RUN pip install --no-cache-dir records
RUN pip install --no-cache-dir babel
RUN pip install --no-cache-dir tabulate

RUN pip install -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install --no-cache-dir -e git+git://github.com/salesforce/cove.git#egg=cove

CMD bash
32 changes: 16 additions & 16 deletions dockerfiles/cuda_torch04
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ ENV LC_ALL en_US.UTF-8
RUN conda install -c pytorch pytorch=0.4.1 cuda90

# Revtok
RUN pip install -e git+https://github.com/jekbradbury/revtok.git#egg=revtok
RUN pip install --no-cache-dir -e git+https://github.com/jekbradbury/revtok.git#egg=revtok

# torchtext requirements
RUN pip install tqdm
RUN pip install nltk==3.2.5
RUN pip install --no-cache-dir tqdm
RUN pip install --no-cache-dir nltk==3.2.5

# tensorboard
RUN pip install tensorboardX
RUN pip install tensorboard
RUN pip install tensorflow
RUN pip install python-dateutil
RUN pip install --no-cache-dir tensorboardX
RUN pip install --no-cache-dir tensorboard
RUN pip install --no-cache-dir tensorflow
RUN pip install --no-cache-dir python-dateutil

# additional python packages
RUN pip install ujson
RUN pip install -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN pip install --no-cache-dir ujson
RUN pip install --no-cache-dir -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN cd /src/pyrouge/pyrouge/../tools/ROUGE-1.5.5/data/ && rm WordNet-2.0.exc.db && ./WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db && chmod 777 WordNet-2.0.exc.db
#RUN pip install lxml
RUN pip install sacrebleu
#RUN pip install --no-cache-dir lxml
RUN pip install --no-cache-dir sacrebleu

# Install packages for XML processing
RUN apt-get install --yes \
Expand All @@ -61,11 +61,11 @@ RUN apt-get install --yes \
python-lxml

# WikISQL evaluation
RUN pip install records
RUN pip install babel
RUN pip install tabulate
RUN pip install --no-cache-dir records
RUN pip install --no-cache-dir babel
RUN pip install --no-cache-dir tabulate

RUN pip install -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install allennlp
RUN pip install --no-cache-dir -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install --no-cache-dir allennlp

CMD bash
30 changes: 15 additions & 15 deletions dockerfiles/torch03
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ ENV LC_ALL en_US.UTF-8
RUN conda install -c pytorch pytorch=0.3

# Revtok
RUN pip install -e git+https://github.com/jekbradbury/revtok.git#egg=revtok
RUN pip install --no-cache-dir -e git+https://github.com/jekbradbury/revtok.git#egg=revtok

# torchtext requirements
RUN pip install tqdm
RUN pip install nltk==3.2.5
RUN pip install --no-cache-dir tqdm
RUN pip install --no-cache-dir nltk==3.2.5

# tensorboard
RUN pip install tensorboardX
RUN pip install tensorboard
RUN pip install tensorflow
RUN pip install python-dateutil
RUN pip install --no-cache-dir tensorboardX
RUN pip install --no-cache-dir tensorboard
RUN pip install --no-cache-dir tensorflow
RUN pip install --no-cache-dir python-dateutil

# additional python packages
RUN pip install ujson
RUN pip install -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN pip install --no-cache-dir ujson
RUN pip install --no-cache-dir -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN cd /src/pyrouge/pyrouge/../tools/ROUGE-1.5.5/data/ && rm WordNet-2.0.exc.db && ./WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db && chmod 777 WordNet-2.0.exc.db
#RUN pip install lxml
RUN pip install sacrebleu
#RUN pip install --no-cache-dir lxml
RUN pip install --no-cache-dir sacrebleu

# Install packages for XML processing
RUN apt-get install --yes \
Expand All @@ -61,9 +61,9 @@ RUN apt-get install --yes \
python-lxml

# WikISQL evaluation
RUN pip install records
RUN pip install babel
RUN pip install tabulate
RUN pip install -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install --no-cache-dir records
RUN pip install --no-cache-dir babel
RUN pip install --no-cache-dir tabulate
RUN pip install --no-cache-dir -e git+git://github.com/salesforce/cove.git#egg=cove

CMD bash
32 changes: 16 additions & 16 deletions dockerfiles/torch04
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ ENV LC_ALL en_US.UTF-8
RUN conda install -c pytorch pytorch=0.4.1

# Revtok
RUN pip install -e git+https://github.com/jekbradbury/revtok.git#egg=revtok
RUN pip install --no-cache-dir -e git+https://github.com/jekbradbury/revtok.git#egg=revtok

# torchtext requirements
RUN pip install tqdm
RUN pip install nltk==3.2.5
RUN pip install --no-cache-dir tqdm
RUN pip install --no-cache-dir nltk==3.2.5

# tensorboard
RUN pip install tensorboardX
RUN pip install tensorboard
RUN pip install tensorflow
RUN pip install python-dateutil
RUN pip install --no-cache-dir tensorboardX
RUN pip install --no-cache-dir tensorboard
RUN pip install --no-cache-dir tensorflow
RUN pip install --no-cache-dir python-dateutil

# additional python packages
RUN pip install ujson
RUN pip install -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN pip install --no-cache-dir ujson
RUN pip install --no-cache-dir -e git+git://github.com/andersjo/pyrouge.git#egg=pyrouge
RUN cd /src/pyrouge/pyrouge/../tools/ROUGE-1.5.5/data/ && rm WordNet-2.0.exc.db && ./WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db && chmod 777 WordNet-2.0.exc.db
#RUN pip install lxml
RUN pip install sacrebleu
#RUN pip install --no-cache-dir lxml
RUN pip install --no-cache-dir sacrebleu

# Install packages for XML processing
RUN apt-get install --yes \
Expand All @@ -61,11 +61,11 @@ RUN apt-get install --yes \
python-lxml

# WikISQL evaluation
RUN pip install records
RUN pip install babel
RUN pip install tabulate
RUN pip install --no-cache-dir records
RUN pip install --no-cache-dir babel
RUN pip install --no-cache-dir tabulate

RUN pip install -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install allennlp
RUN pip install --no-cache-dir -e git+git://github.com/salesforce/cove.git#egg=cove
RUN pip install --no-cache-dir allennlp

CMD bash