keshavbhandari commited on
Commit
720b512
1 Parent(s): 494114d

test again

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -3
  2. environment.yml +2 -0
  3. run.sh +2 -2
Dockerfile CHANGED
@@ -4,9 +4,8 @@ WORKDIR /code
4
  COPY ./environment.yml /code/environment.yml
5
 
6
  # Create the environment using the environment.yml file
7
- RUN conda env create -f /code/environment.yml
8
-
9
- RUN sudo apt-get install fluidsynth
10
 
11
  # Set up a new user named "user" with user ID 1000
12
  RUN useradd -m -u 1000 user
 
4
  COPY ./environment.yml /code/environment.yml
5
 
6
  # Create the environment using the environment.yml file
7
+ RUN conda env create -f /code/environment.yml && \
8
+ conda run -n myenv conda install -c conda-forge fluidsynth -y
 
9
 
10
  # Set up a new user named "user" with user ID 1000
11
  RUN useradd -m -u 1000 user
environment.yml CHANGED
@@ -3,5 +3,7 @@ channels:
3
  - conda-forge
4
  dependencies:
5
  - python=3.10
 
 
6
  - pip:
7
  - -r requirements.txt
 
3
  - conda-forge
4
  dependencies:
5
  - python=3.10
6
+ - fluidsynth
7
+ - pip
8
  - pip:
9
  - -r requirements.txt
run.sh CHANGED
@@ -3,8 +3,8 @@ CONDA_ENV=$(head -1 /code/environment.yml | cut -d" " -f2)
3
  eval "$(conda shell.bash hook)"
4
  conda activate $CONDA_ENV
5
 
6
- # # Install fluidsynth using conda
7
- # conda install conda-forge::fluidsynth
8
 
9
  # Install pip packages
10
  pip install -r requirements.txt
 
3
  eval "$(conda shell.bash hook)"
4
  conda activate $CONDA_ENV
5
 
6
+ # Install fluidsynth using conda
7
+ conda install conda-forge::fluidsynth
8
 
9
  # Install pip packages
10
  pip install -r requirements.txt