Improving dockerfile and removing pipenv

This commit is contained in:
timogoosen 2022-04-27 14:26:24 +02:00
parent 57a5c6d453
commit 643998809b
No known key found for this signature in database
GPG Key ID: 49DDE4E25FF06091
1 changed files with 22 additions and 5 deletions

View File

@ -1,15 +1,32 @@
FROM python:3
WORKDIR /plane-notify
USER root
COPY . .
# Set the Chrome repo.
RUN wget -q -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.list
RUN set -ex && \
apt-get update -qq && \
apt-get -y -qq install --no-install-recommends \
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 google-chrome-stable
# Add pipenv
RUN pip install pipenv==2021.5.29