Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
feat: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzeng committed Jul 11, 2023
1 parent aafff10 commit 4c1f884
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
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."

0 comments on commit 4c1f884

Please sign in to comment.