Skip to content

Commit

Permalink
Use cache when installing requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Eimis committed Feb 1, 2019
1 parent 9eba864 commit 028e264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ RUN mkdir /app

RUN pip3 install -U pip setuptools

ADD . /app/src
ADD OIPA/requirements.txt /app/src/OIPA/requirements.txt

# Install Python dependencies
#FIXME: use cache: https://stackoverflow.com/a/25307587/2942981
RUN pip3 install -r /app/src/OIPA/requirements.txt

ADD . /app/src

ENV PYTHONPATH="$PYTHONPATH:/usr/local/lib/python3.6/dist-packages"

RUN ["chmod", "+x", "/app/src/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ else 'Superuser already exists . . .'"
python3.6 /app/src/OIPA/manage.py supervisor -d

# Start dev server:
>&2 echo "Postgres is up - executing command . . ."
>&2 echo "\n\n\n*** Database is up - executing Docker container entrypoint (startup) command ***\n\n\n"
exec $cmd

0 comments on commit 028e264

Please sign in to comment.