Skip to content

Commit

Permalink
Have binder read from pip instead of building pydeck
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Duberstein committed Sep 24, 2019
1 parent 95e77c3 commit 2e69a5b
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Dockerfile
@@ -1,31 +1,13 @@
FROM python:3.7-slim
RUN pip install --no-cache-dir notebook==5.*

RUN apt-get update
RUN apt-get -y install curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN apt-get -y install nodejs
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update
RUN apt-get -y install yarn

RUN apt-get install -y g++-6 && \
apt-get install -y mesa-utils && \
apt-get install -y xvfb && \
apt-get install -y libgl1-mesa-dri && \
apt-get install -y libglapi-mesa && \
apt-get install -y libosmesa6 && \
apt-get install -y libxi-dev
RUN pip install pydeck

ENV HOME=/tmp
ENV MAPBOX_API_KEY=pk.eyJ1IjoiZHViZXJzYWoiLCJhIjoiY2swcGw1ZmgxMGVqZzNjbnhzaWVxMHV0ZyJ9.p_3sGrPDq7v2Crb4cIfx3Q
COPY . ${HOME}
WORKDIR ${HOME}/bindings/python/pydeck

RUN pip install -r requirements.txt \
&& pip install -r requirements-dev.txt \
&& pip install -e . --install-option "--build_all"
RUN pip install -r requirements-dev.txt

ARG NB_USER=jovyan
ARG NB_UID=1000
Expand Down

0 comments on commit 2e69a5b

Please sign in to comment.