Skip to content
Snippets Groups Projects
Commit 16d7feb3 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Create Dockerfile based on conda

parent 77a999ba
No related branches found
No related tags found
1 merge request!152Run Redis from Conda and add environment.yml
FROM archlinux/base FROM continuumio/miniconda3
## Install packages and clear the cache after installation. Yarn is fixed at 1.6.0 untill 1.8.0 is released due to a critical bug. RUN apt-get update -y && apt-get install -y libdmtx0a
RUN pacman -Sy --noconfirm nodejs python-pip git libdmtx libsm libxrender libxext gcc libmagick6 imagemagick ghostscript; \
pacman -U --noconfirm https://archive.archlinux.org/packages/y/yarn/yarn-1.6.0-1-any.pkg.tar.xz WORKDIR /app
WORKDIR ~ ADD environment.yml /app/environment.yml
ADD requirements*.txt ./ RUN conda env create
#ADD package.json .
RUN pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt; # From https://medium.com/@chadlagore/conda-environments-with-docker-82cdc9d25754
#RUN yarn install; \ RUN echo "source activate $(head -1 /app/environment.yml | cut -d' ' -f2)" > ~/.bashrc
# yarn cache clean; \ ENV PATH /opt/conda/envs/$(head -1 /app/environment.yml | cut -d' ' -f2)/bin:$PATH
# rm package.json
RUN rm -rf /app/environment.yml
CMD bash CMD bash
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment