Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use --no-cache-dir flag to pip in Dockerfiles, to save space #386

Open
wants to merge 1 commit into
base: develop
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
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN apt-get --quiet=2 install -y \

RUN apt-get --quiet=2 install -y python-psycopg2
RUN apt-get --quiet=2 install -y sqlite3
RUN pip install MySQL-Python
RUN pip install psycopg2
RUN pip install --no-cache-dir MySQL-Python
RUN pip install --no-cache-dir psycopg2
# upgrade pip to fix https://github.com/dropbox/nsot/issues/277
RUN pip install -U setuptools
RUN pip install --no-cache-dir -U setuptools

# Try to run this as late as possible for layer caching - this version will be
# updated every update so let the build not take longer than necessary
RUN pip install nsot==1.4.6
RUN pip install --no-cache-dir nsot==1.4.6

COPY conf /etc/nsot

Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN apt-get --quiet=2 install -y \

RUN apt-get --quiet=2 install -y python-psycopg2
RUN apt-get --quiet=2 install -y sqlite3
RUN pip install MySQL-Python
RUN pip install psycopg2
RUN pip install --no-cache-dir MySQL-Python
RUN pip install --no-cache-dir psycopg2
# upgrade pip to fix https://github.com/dropbox/nsot/issues/277
RUN pip install -U setuptools
RUN pip install --no-cache-dir -U setuptools

# Try to run this as late as possible for layer caching - this version will be
# updated every update so let the build not take longer than necessary
RUN pip install nsot=={{ NSOT_VERSION }}
RUN pip install --no-cache-dir nsot=={{ NSOT_VERSION }}
COPY conf /etc/nsot

ENTRYPOINT ["nsot-server", "--config=/etc/nsot/nsot.conf.py"]
Expand Down