-
Notifications
You must be signed in to change notification settings - Fork 15
/
grass.dockerfile
34 lines (29 loc) · 894 Bytes
/
grass.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:stable-slim
# Set environment variables
ENV EXTENSION_ID=ilehaonighjijnmpnagapkhpcdbhclfg
ENV EXTENSION_URL='https://app.getgrass.io/'
ENV GIT_USERNAME=warren-bank
ENV GIT_REPO=chrome-extension-downloader
# Install necessary packages then clean up to reduce image size
RUN apt update && \
apt upgrade -y && \
apt install -qqy \
curl \
wget \
git \
chromium \
chromium-driver \
python3 \
python3-selenium && \
apt autoremove --purge -y && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Download crx downloader from git
RUN git clone "https://github.com/${GIT_USERNAME}/${GIT_REPO}.git" && \
chmod +x ./${GIT_REPO}/bin/*
# Download the extension selected
RUN ./${GIT_REPO}/bin/crxdl $EXTENSION_ID
# Install python requirements
COPY grass_main.py .
# RUN pip install -r requirements.txt
ENTRYPOINT [ "python3", "grass_main.py" ]