-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3381a31
commit ee72181
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |