Shrink the docker image size
parent
5da46e924c
commit
d399affb5c
|
@ -1,7 +1,6 @@
|
|||
FROM continuumio/miniconda3:latest
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
ffmpeg \
|
||||
|
@ -16,13 +15,16 @@ RUN apt-get update && apt-get upgrade -y \
|
|||
xvfb \
|
||||
zip \
|
||||
zlib1g-dev \
|
||||
&& apt clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY environment.yml /tmp/
|
||||
RUN conda update -y -n base conda \
|
||||
&& echo ' - pyvirtualdisplay' >> /tmp/environment.yml \
|
||||
RUN echo ' - pyvirtualdisplay' >> /tmp/environment.yml \
|
||||
&& conda env create -f /tmp/environment.yml \
|
||||
&& conda clean -y -t \
|
||||
&& conda clean -afy \
|
||||
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
|
||||
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
|
||||
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete \
|
||||
&& rm /tmp/environment.yml
|
||||
|
||||
ARG username
|
||||
|
|
Loading…
Reference in New Issue