Browse Source
basically reverts 7302ae8539
includes somes build speed improvements with order
pull/111/head
Mark Bumiller
2 years ago
2 changed files with 16 additions and 50 deletions
@ -1,37 +1,25 @@ |
|||||||
FROM python:3 |
FROM python:3 |
||||||
|
|
||||||
WORKDIR /plane-notify |
WORKDIR /plane-notify |
||||||
USER root |
|
||||||
|
|
||||||
COPY . . |
# Added needed folder for plane-notify process |
||||||
|
RUN mkdir /home/plane-notify |
||||||
|
|
||||||
RUN set -ex && \ |
# Set the Chrome repo. |
||||||
apt-get update -qq && \ |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
||||||
apt-get -y -qq install --no-install-recommends \ |
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list |
||||||
ca-certificates \ |
|
||||||
gnupg && \ |
|
||||||
curl -sSL 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.list && \ |
|
||||||
apt-get -y -qq update \ |
|
||||||
&& apt-get -y -qq install --no-install-recommends \ |
|
||||||
bash \ |
|
||||||
curl \ |
|
||||||
google-chrome-stable \ |
|
||||||
python3 \ |
|
||||||
python3-dev \ |
|
||||||
python3-pip \ |
|
||||||
python3-setuptools \ |
|
||||||
python3-wheel \ |
|
||||||
&& rm -rf \ |
|
||||||
/var/lib/apt/lists/* \ |
|
||||||
/var/cache/apt/archives |
|
||||||
|
|
||||||
|
# Install Chrome. |
||||||
|
RUN apt-get update && apt-get -y install --no-install-recommends \ |
||||||
|
google-chrome-stable \ |
||||||
|
python3-dev |
||||||
|
|
||||||
|
# Add pipenv |
||||||
|
RUN pip install pipenv |
||||||
|
|
||||||
RUN pip3 install --upgrade pip && \ |
# Install dependencies |
||||||
pip3 install -U --no-cache-dir -r ./requirements.txt |
COPY Pipfile* . |
||||||
|
RUN pipenv install |
||||||
|
|
||||||
# Added needed folder for plane-notify process |
COPY . . |
||||||
RUN mkdir -p /home/plane-notify |
CMD pipenv run python /plane-notify/__main__.py |
||||||
|
|
||||||
CMD python3 /plane-notify/__main__.py |
|
||||||
|
@ -1,22 +0,0 @@ |
|||||||
# requirements.txt |
|
||||||
colorama |
|
||||||
geopy |
|
||||||
tabulate |
|
||||||
pytz |
|
||||||
pillow |
|
||||||
tweepy |
|
||||||
discord-webhook |
|
||||||
selenium |
|
||||||
git+https://github.com/openskynetwork/opensky-api.git@master#subdirectory=python/ |
|
||||||
webdriver-manager |
|
||||||
shapely |
|
||||||
pandas |
|
||||||
python-telegram-bot |
|
||||||
mastodon.py |
|
||||||
beautifulsoup4 |
|
||||||
pycairo |
|
||||||
py-staticmaps |
|
||||||
pyproj |
|
||||||
lxml |
|
||||||
configparser |
|
||||||
geog |
|
Loading…
Reference in new issue