Jack Sweeney
2 years ago
committed by
GitHub
2 changed files with 42 additions and 14 deletions
@ -1,23 +1,37 @@ |
|||||||
FROM python:3 |
FROM python:3 |
||||||
|
|
||||||
WORKDIR /plane-notify |
WORKDIR /plane-notify |
||||||
|
USER root |
||||||
|
|
||||||
COPY . . |
COPY . . |
||||||
|
|
||||||
# Set the Chrome repo. |
RUN set -ex && \ |
||||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
apt-get update -qq && \ |
||||||
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list |
apt-get -y -qq install --no-install-recommends \ |
||||||
|
ca-certificates \ |
||||||
# Install Chrome. |
gnupg && \ |
||||||
RUN apt-get update && apt-get -y install google-chrome-stable |
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 && \ |
||||||
# Add pipenv |
apt-get -y -qq update \ |
||||||
RUN pip install pipenv==2022.11.30 |
&& apt-get -y -qq install --no-install-recommends \ |
||||||
|
bash \ |
||||||
# Install dependencies |
curl \ |
||||||
RUN pipenv install |
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 |
# Added needed folder for plane-notify process |
||||||
RUN mkdir /home/plane-notify |
RUN mkdir -p /home/plane-notify |
||||||
|
|
||||||
CMD pipenv run python /plane-notify/__main__.py |
CMD python3 /plane-notify/__main__.py |
Loading…
Reference in new issue