-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 1005 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1
# Use a base image that supports Conda and SIF
FROM ctglabcnr/excavator2
# Set the working directory
WORKDIR /app
# Pre-copy only the env files to leverage Docker caching
COPY conda_envs/ conda_envs/
# Create Conda environments from YAML files
RUN micromamba env create -f conda_envs/linux/HMM_conda_env.yml && \
micromamba env create -f conda_envs/linux/miXer_ml_conda_env.yml && \
micromamba env create -f conda_envs/linux/mixerPre.yml
# Copy files into the container
# Since these files change often, docker will run again the later instructions
# Without being able to use the layer caching mechanism (thus, longer image creation times)
# Moving them after the env creation step
# Update excavator2 environment with required packages
RUN micromamba run -n excavator2 pip install pandas PyYAML
COPY . /app
# Copy the entry point scripts into the container
RUN chmod +x /app/entrypoints/*.sh && \
mkdir -p /app/tmp/
ENTRYPOINT ["/app/entrypoints/mixer.sh"]