Mirror of https://github.com/Jxck-S/plane-notify This is the backend to ElonsJet and other bots
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
960 B

FROM python:3
WORKDIR /plane-notify
USER root
COPY . .
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
RUN pip3 install --upgrade pip && \
pip3 install -U --no-cache-dir -r ./requirements.txt
# Added needed folder for plane-notify process
RUN mkdir -p /home/plane-notify
CMD python3 /plane-notify/__main__.py