-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (26 loc) · 869 Bytes
/
Dockerfile
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
30
31
32
33
34
# Use the official micromamba image as a base
FROM mambaorg/micromamba:latest
LABEL maintainer="Miguel A. Ibarra-Arellano"
# Set the base layer for micromamba
USER root
COPY environment.yml .
# Update package manager and install essential build tools
RUN apt-get update -qq && apt-get install -y \
build-essential \
ffmpeg \
libsm6 \
libxext6 \
procps
# Set the environment variable for the root prefix
ARG MAMBA_ROOT_PREFIX=/opt/conda
# Add /opt/conda/bin to the PATH
ENV PATH $MAMBA_ROOT_PREFIX/bin:$PATH
# Install dependencies with micromamba, clean afterwards
RUN micromamba env create -f environment.yml \
&& micromamba clean --all --yes
# Add environment to PATH
ENV PATH="/opt/conda/envs/mask2bbox/bin:$PATH"
# Set the working directory
WORKDIR /mask2bbox
# Copy contents of the folder to the working directory
COPY ../mask2bbox .