forked from SchapiroLabor/Background_subtraction
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 747 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
FROM mambaorg/micromamba:1.5.10-noble
# Copy conda environment file
COPY --chown=$MAMBA_USER:$MAMBA_USER ./environment.yml /tmp/conda.yml
# Install environment
RUN micromamba install -y -n base -f /tmp/conda.yml \
&& micromamba install -y -n base conda-forge::procps-ng \
&& micromamba env export --name base --explicit > environment.lock \
&& echo ">> CONDA_LOCK_START" \
&& cat environment.lock \
&& echo "<< CONDA_LOCK_END" \
&& micromamba clean -a -y
# Switch to root to copy everything
USER root
# Ensure micromamba binaries are in PATH
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
# Copy the rest of the current directory into /app inside the container
WORKDIR /app
COPY . .
RUN micromamba run -n base pip install .