-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
34 lines (24 loc) · 990 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
28
29
30
31
32
33
34
FROM python:3.6.2
LABEL maintainer="Youssef Darzi <darzi.y.aa@m.titech.ac.jp>"
RUN curl https://nodejs.org/dist/v6.11.2/node-v6.11.2-linux-x64.tar.xz | tar Jxv -C /opt/
ENV PATH /opt/node-v6.11.2-linux-x64/bin:$PATH
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list \
&& wget https://dl-ssl.google.com/linux/linux_signing_key.pub \
&& apt-key add linux_signing_key.pub
RUN apt-get update && apt-get install -y --no-install-recommends \
unzip \
google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://chromedriver.storage.googleapis.com/2.39/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& mv chromedriver /usr/local/bin/ \
&& rm chromedriver_linux64.zip
ADD . /app/
WORKDIR /app/
RUN pip3 install -r requirements.txt
RUN npm install --global yarn && \
yarn run install-depends && \
yarn run install-devDepends && \
yarn run build
EXPOSE 3031 8080
CMD ["uwsgi", "--ini", "/app/uwsgi.ini"]