-
Notifications
You must be signed in to change notification settings - Fork 5
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
4 additions
and
17 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,26 +1,13 @@ | ||
FROM ubuntu:latest | ||
RUN apt update -y && \ | ||
apt install -y wget && \ | ||
apt clean | ||
|
||
WORKDIR /xilriws | ||
|
||
RUN apt install -y curl | ||
RUN apt-get update \ | ||
&& apt-get install -y wget gnupg \ | ||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | ||
&& apt-get update \ | ||
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN npm exec @puppeteer/browsers install chromium@latest | ||
RUN find /xilriws -name "chrome" -exec mv {} /usr/local/bin/chromium \; | ||
RUN apt install -y software-properties-common | ||
RUN add-apt-repository ppa:savoury1/chromium | ||
RUN apt update && apt install -y chromium-browser | ||
|
||
WORKDIR /xilriws | ||
|
||
COPY . . | ||
|
||
CMD ["chromium"] | ||
ENTRYPOINT ["./xilriws"] |