-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile
27 lines (21 loc) · 958 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Start from a base image with Miniconda installed
FROM continuumio/miniconda3
# Install system dependencies
RUN apt-get update && \
apt-get install -y sudo libusb-1.0 python3-dev gcc g++ make && \
rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /quants-lab
# Copy the current directory contents and the Conda environment file into the container
COPY core/ core/
COPY environment.yml .
COPY research_notebooks/ research_notebooks/
COPY controllers/ controllers/
COPY tasks/ tasks/
# Create the environment from the environment.yml file
# If cchardet fails, we'll install it separately
RUN conda env create -f environment.yml
# Activate the environment and install cchardet separately if it failed
# RUN conda run -n quants_lab pip install cchardet || echo "cchardet installation failed, continuing anyway"
# Make RUN commands use the new environment
SHELL ["conda", "run", "-n", "quants-lab", "/bin/bash", "-c"]