forked from fengxia41103/mouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-deep
63 lines (50 loc) · 1.51 KB
/
Dockerfile-deep
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM continuumio/miniconda3
# name your environment and choose python 3.x version
ARG conda_env=deep
# Install system packages
# https://askubuntu.com/questions/1073145/how-to-install-wxpython-4-ubuntu-18-04
# https://github.com/wxWidgets/Phoenix/blob/master/README.rst#prerequisites
RUN apt-get --allow-releaseinfo-change update && \
apt-get update && \
apt-get install -y \
dpkg-dev \
build-essential \
python3.7-dev \
libpython3.7-dev \
freeglut3-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libgstreamer-plugins-base1.0-dev \
libgtk-3-dev \
libjpeg-dev \
libnotify-dev \
libpng-dev \
libsdl2-dev \
libsm-dev \
libtiff-dev \
libwebkit2gtk-4.0-dev \
libxtst-dev \
python-wxgtk3.0 \
libgtk2.0-0
RUN mkdir /app
WORKDIR /app
# Make RUN commands use `bash --login`:
SHELL ["/bin/bash", "--login", "-c"]
# Create the environment:
COPY DLC-CPU.yaml .
RUN conda env create -f DLC-CPU.yaml
# Initialize conda in bash config fiiles:
RUN conda init bash
# Update conda
RUN conda update conda
# Activate the environment, and make sure it's activated:
RUN echo "conda init bash" >> ~/.bashrc
RUN echo "conda activate DLC-CPU" >> ~/.bashrc
RUN echo "Make sure conda python3.6 is installed:"
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "DLC-CPU", "/bin/bash", "-c"]
# Upgrade pip
# RUN pip install --upgrade pip
#RUN conda install cudatoolkit=11.1 -c conda-forge
RUN pip install deeplabcut[gui]==2.2rc3
# RUN conda install -U wxPython