Skip to content

Commit

Permalink
Remove .pyc files and pip cache from Docker images.
Browse files Browse the repository at this point in the history
  • Loading branch information
esmail committed Nov 6, 2016
1 parent 87ee0d2 commit 377d477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Dockerfile
Dockerfile.kobocat_base
src
**/*.pyc
3 changes: 2 additions & 1 deletion Dockerfile.kobocat_base
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN apt-get update && \
COPY ./requirements/ ${KOBOCAT_TMP_DIR}/base_requirements/
RUN mkdir -p ${PIP_EDITABLE_PACKAGES_DIR} && \
pip install --src ${PIP_EDITABLE_PACKAGES_DIR}/ -r ${KOBOCAT_TMP_DIR}/base_requirements/base.pip && \
pip install --src ${PIP_EDITABLE_PACKAGES_DIR}/ -r ${KOBOCAT_TMP_DIR}/base_requirements/s3.pip
pip install --src ${PIP_EDITABLE_PACKAGES_DIR}/ -r ${KOBOCAT_TMP_DIR}/base_requirements/s3.pip && \
rm -rf ~/.cache/pip


################################
Expand Down

0 comments on commit 377d477

Please sign in to comment.