Skip to content

Commit

Permalink
Add cleanup in docker build to reduce final image size
Browse files Browse the repository at this point in the history
  • Loading branch information
axdanbol committed Oct 25, 2023
1 parent 9b5856c commit d8d0453
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion containers/celltypist/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.10
RUN apt-get -y update && apt-get -y install cmake

COPY context/requirements-freeze.txt .
RUN pip install -r requirements-freeze.txt
RUN pip install -r requirements-freeze.txt && pip cache purge

ENV CELLTYPIST_FOLDER="/models"
RUN python -c "import celltypist; celltypist.models.download_models()"
Expand Down
2 changes: 1 addition & 1 deletion containers/crosswalking/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.10

COPY context/requirements-freeze.txt .
RUN pip install -r requirements-freeze.txt
RUN pip install -r requirements-freeze.txt && pip cache purge

COPY context/ .

Expand Down
2 changes: 1 addition & 1 deletion containers/extract-summary/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.10

COPY context/requirements-freeze.txt .
RUN pip install -r requirements-freeze.txt
RUN pip install -r requirements-freeze.txt && pip cache purge

COPY context/ .

Expand Down
2 changes: 1 addition & 1 deletion containers/gene-expression/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.10

COPY context/requirements-freeze.txt .
RUN pip install -r requirements-freeze.txt
RUN pip install -r requirements-freeze.txt && pip cache purge

COPY context/ .

Expand Down
4 changes: 2 additions & 2 deletions containers/popv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM tensorflow/tensorflow:2.11.1

RUN apt-get -y update && apt-get -y install python3-dev g++ git wget
RUN apt-get -y update && apt-get -y install python3-dev g++ git wget && apt-get clean

COPY context/download-ontology.sh .
RUN ./download-ontology.sh

COPY context/requirements-freeze.txt .
RUN pip install -r requirements-freeze.txt
RUN pip install -r requirements-freeze.txt && pip cache purge

COPY context/ .

Expand Down

0 comments on commit d8d0453

Please sign in to comment.