forked from cesium-ml/cesium_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 830 Bytes
/
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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y python3 python3-venv libpq-dev libhdf5-serial-dev \
libnetcdf-dev supervisor libpython3-dev supervisor \
nginx npm nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN python3 -m venv /cesium_env
ADD . /cesium
WORKDIR /cesium
RUN bash -c "source /cesium_env/bin/activate && \
pip install --upgrade pip && \
pip install --upgrade pip && \
export PIP_FIND_LINKS=http://wheels.scikit-image.org && \
make paths && \
make dependencies && \
cp docker/cesium-docker.yaml . && \
ln -s /usr/bin/nodejs /usr/bin/node"
EXPOSE 5000
CMD bash -c "source /cesium_env/bin/activate && \
supervisord -c conf/supervisord.conf"