Commit ed3be50b authored by Viacheslav Ostroukh's avatar Viacheslav Ostroukh 🚲
Browse files

clean conda in proper place and clean apt cache

    Cleaning conda in separate stage creates two large diffs, that is
    not acceptable.
parent d02d37ea
Pipeline #10023 passed with stage
in 13 seconds
......@@ -59,7 +59,8 @@ RUN mkdir /environments
COPY python3.yml dev.yml /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 | apt-key add - && \
echo "deb 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 script and set start-up command
COPY /usr/local/bin
CMD [""]
Supports Markdown
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