Skip to content

Commit

Permalink
Avoid pip upgrades during Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy committed Aug 23, 2023
1 parent bf99098 commit 51ef7b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ RUN chmod +x /usr/bin/celery-cmd
# RUN cd /usr/src/geonode-contribs/geonode-logstash; pip install --upgrade -e . \
# cd /usr/src/geonode-contribs/ldap; pip install --upgrade -e .

RUN yes w | pip install --src /usr/src -Ur requirements.txt
RUN yes w | pip install --upgrade -e .
RUN yes w | pip install --src /usr/src -r requirements.txt &&\
yes w | pip install -e .

# Cleanup apt update lists
RUN apt-get autoremove --purge
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*

# Export ports
EXPOSE 8000
Expand Down

0 comments on commit 51ef7b1

Please sign in to comment.