FROM continuumio/miniconda3
COPY . /workdir
WORKDIR /workdir

# Run updates and create necessary folders
RUN apt-get update && \
apt-get install -y zip unzip

# Initialize environment
RUN conda init bash

# Create the environment
RUN conda env create -f conda-envs/pytorch_vision_dev.yml

# Make RUN commands use the new environment:
RUN echo "conda activate pytorch_vision_dev" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]

# Build the repo
RUN bash scripts/build.sh
