Commit ed3be50b authored by Viacheslav's avatar Viacheslav

clean conda in proper place and clean apt cache

    Cleaning conda in separate stage creates two large diffs, that is
    not acceptable.
parent d02d37ea
......@@ -59,7 +59,8 @@ RUN mkdir /environments
COPY python3.yml dev.yml install_dev.sh /environments/
# Update the root environment
RUN conda env update -n root -f /environments/python3.yml
RUN conda env update -n root -f /environments/python3.yml && \
conda clean --yes --all
# Add a dev environment (e.g. with dev kwant and holoviews)
# RUN conda env create -p /opt/conda/envs/dev -f /environments/dev.yml
......@@ -98,7 +99,7 @@ ENV OPENBLAS_NUM_THREADS=1\
# Syncthing installation
RUN curl -s https://syncthing.net/release-key.txt | apt-key add - && \
echo "deb https://apt.syncthing.net/ syncthing stable" | tee /etc/apt/sources.list.d/syncthing.list && \
apt-get update && apt-get install -y syncthing && apt-get clean
apt-get update && apt-get install -y syncthing && apt-get clean && rm -rf /var/lib/apt/lists/*
# Install supervisor for automatic starting of syncthing
COPY supervisord.conf /etc/supervisor/supervisord.conf
......@@ -106,9 +107,6 @@ COPY supervisord.conf /etc/supervisor/supervisord.conf
# Fix permissions (required when following the base image)
RUN fix-permissions /opt/conda
# Cleanup all downloaded conda files
RUN conda clean --yes --all
# copy startup.sh script and set start-up command
COPY startup.sh /usr/local/bin
CMD ["startup.sh"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment