FROM ubuntu:20.04 | |
# Set the working directory in the container | |
WORKDIR /app | |
# Copy the entire repository contents into the container | |
COPY . . | |
# Install Miniconda to manage Python environments | |
RUN apt-get update && apt-get install -y wget \ | |
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh \ | |
&& bash miniconda.sh -b -p /usr/local/miniconda \ | |
&& rm miniconda.sh \ | |
&& /usr/local/miniconda/bin/conda init \ | |
&& /usr/local/miniconda/bin/conda env create -f environment.yml \ | |
&& /usr/local/miniconda/bin/conda activate ptw2 \ | |
&& /usr/local/miniconda/bin/pip install -e . | |
# Command to run when the container starts | |
CMD ["/bin/bash"] | |