-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (22 loc) · 1.12 KB
/
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
# Use vanvalenlab/deepcell-tf as the base image
# Change the build arg to edit the deepcell version.
# Only supporting python3.
ARG DEEPCELL_VERSION=0.12.9-gpu
FROM vanvalenlab/deepcell-tf:${DEEPCELL_VERSION}
# https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212771
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
# Install git for postcode installation
RUN apt-get update && apt-get install -y \
git && \
rm -rf /var/lib/apt/lists/*
# Copy the required setup files and install the deepcell-tf dependencies
COPY setup.py README.md requirements.txt /opt/deepcell-spots/
# Prevent reinstallation of tensorflow and install all other requirements.
RUN sed -i "/tensorflow>/d" /opt/deepcell-spots/requirements.txt && \
pip install --no-cache-dir -r /opt/deepcell-spots/requirements.txt
# Copy the rest of the package code and its scripts
COPY deepcell_spots /opt/deepcell-spots/deepcell_spots
# Install deepcell spots via setup.py
RUN pip install /opt/deepcell-spots
# Copy over deepcell notebooks
COPY notebooks/ /notebooks/