Skip to content

Commit

Permalink
add: dockerfile to create conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
billy000400 committed Feb 2, 2024
1 parent 3381a31 commit ee72181
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use an official Miniconda runtime as a parent image
FROM continuumio/miniconda3

# Set the working directory in the container
WORKDIR /usr/src/app

# Update the package list and install Vim
RUN apt-get update && apt-get install -y vim-gtk

# Download the YAML file
# Replace the URL with the actual URL of your YAML file
COPY environment.yml /usr/src/app/environment.yml

# Create the environment using the downloaded YAML file
RUN conda env create -f environment.yml
SHELL ["conda", "run", "-n", "hh4b", "/bin/bash", "-c"]

# Activate the Conda environment and install additional packages with pip
# Replace 'your_env_name' with the name of your Conda environment
# Replace 'package1 package2' with the packages you want to install
ENV PATH /opt/conda/bin:$PATH
RUN pip install ray[tune]

0 comments on commit ee72181

Please sign in to comment.