Skip to content

Commit

Permalink
Add files for building a mac container Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
migueLib committed Aug 6, 2024
1 parent e037ccf commit 5b37ed8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile-mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Use the official micromamba image as a base
FROM continuumio/miniconda3:latest
LABEL maintainer="Miguel A. Ibarra-Arellano"

# Set the base layer for micromamba
COPY environment-mac.yml .

# Update package manager and install essential build tools
RUN apt-get update -qq && apt-get install -y \
build-essential \
ffmpeg \
libsm6 \
libxext6 \
procps

# Install dependencies with micromamba, clean afterwards
RUN conda env create -f environment-mac.yml \
&& conda clean --all --yes

# Add environment to PATH
ENV PATH="/opt/conda/envs/stardist/bin:$PATH"

# Set the working directory
WORKDIR /stardist
13 changes: 13 additions & 0 deletions environment-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: stardist
channels:
- apple
- conda-forge
dependencies:
- python=3.9 ## specify desired version
- tensorflow-deps==2.10.0
- stardist
- tifffile<2022.4.22
- pip
- pip:
- tensorflow-macos==2.10.0
- tensorflow-metal==0.6.0

0 comments on commit 5b37ed8

Please sign in to comment.