forked from stardist/stardist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files for building a mac container Apple Silicon
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |