-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
55 lines (42 loc) · 1.41 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
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
FROM python:3.9.0
ENV APP_HOME /app
WORKDIR ${APP_HOME}
COPY . ./
# Install Ubuntu dependencies
# libopencv-dev = opencv dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
tzdata \
libopencv-dev \
build-essential \
libssl-dev \
libpq-dev \
libcurl4-gnutls-dev \
libexpat1-dev \
gettext \
unzip \
supervisor \
python3-setuptools \
python3-pip \
python3-dev \
python3-venv \
python3-urllib3 \
git \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install pip pipenv --upgrade
# sklearn opencv, numpy, and pandas
RUN pip install scikit-learn opencv-contrib-python numpy pandas
# tensorflow (including Keras)
RUN pip install tensorflow keras
# pytorch (cpu)
RUN apt-get update && apt-get -y install gcc mono-mcs && rm -rf /var/lib/apt/lists/*
RUN pip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html
# fastai
RUN pip install fastai
# Project installs
RUN pipenv install --skip-lock --system --dev
LABEL org.opencontainers.image.source https://github.com/JayantGoel001/Jupyter-x-Docker
LABEL org.opencontainers.image.description Jupyter Notebook Server built with Docker & deployed on Heroku.
RUN [ "chmod", "+x", "./scripts/entrypoint.sh" ]
CMD [ "./scripts/entrypoint.sh" ]