-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
FROM python | ||
|
||
# install google chrome | ||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | ||
RUN apt update | ||
RUN apt update && apt install -y google-chrome-stable xvfb | ||
|
||
# installing required packages | ||
RUN apt install -y google-chrome-stable xvfb | ||
|
||
# create the app directory | ||
WORKDIR /app | ||
|
||
# clone the project | ||
RUN git clone https://github.com/charlesbel/Microsoft-Rewards-Farmer.git ./ | ||
|
||
# install dependencies | ||
RUN pip install --root-user-action=ignore -r requirements.txt | ||
|
||
# copy over entrypoint script | ||
COPY entrypoint.sh ./ | ||
|
||
# | ||
ENTRYPOINT ["/app/entrypoint.sh"] | ||
|
||
# | ||
CMD ["python3", "main.py", "--visible"] |