Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccev authored Mar 25, 2024
1 parent ffa1848 commit 74881ce
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions Dockerfile
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"]

0 comments on commit 74881ce

Please sign in to comment.