-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
18 lines (14 loc) · 969 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.5.3-slim
RUN apt-get update && apt-get install -y locales wget && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont libx11-xcb1 libxtst6 libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
RUN ["pyppeteer-install"]
COPY . /app
ENV PYTHONPATH /app
ENTRYPOINT ["python3", "/app/southwestalerts/app.py"]