This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 800
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
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Use Debian distribution | ||
FROM node:16 | ||
|
||
ARG CHROME_VERSION="98.0.4758.102" | ||
RUN apt-get update -y \ | ||
&& apt-get install -y --no-install-recommends unzip \ | ||
&& wget -qO /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb \ | ||
&& wget -qO /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/${CHROME_VERSION}/chromedriver_linux64.zip \ | ||
&& unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ \ | ||
&& apt-get install -y /tmp/chrome.deb \ | ||
&& rm /tmp/chrome.deb /tmp/chromedriver.zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./dist /app | ||
|
||
WORKDIR /app | ||
ENTRYPOINT ["node", "index.js"] | ||
|
||
LABEL description="Get shopee coins everyday." |