forked from davidzyx/ca-wildfire-risk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 965 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 965 Bytes
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
FROM jupyter/base-notebook:python-3.8.8
# selenium stuff
USER root
RUN apt-get update && apt-get install curl unzip xvfb libxi6 libgconf-2-4 gnupg -y && apt-get clean
RUN wget https://chromedriver.storage.googleapis.com/90.0.4430.24/chromedriver_linux64.zip -O /tmp/chrome.zip && \
unzip /tmp/chrome.zip -d /usr/bin && \
chmod a+x /usr/bin/chromedriver && \
rm /tmp/chrome.zip
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get -y update && \
apt-get -y install google-chrome-stable && \
apt-get clean
# python stuff
USER $NB_USER
COPY requirements.txt /tmp
RUN pip --no-cache-dir install -r /tmp/requirements.txt
WORKDIR /app
COPY --chown=$NB_USER:$NB_GID . /app
USER root
RUN chown $NB_USER:$NB_GID /app
USER $NB_USER
EXPOSE 8050
CMD python src/app.py