035 / Dockerfile
chaowenguo's picture
Create Dockerfile
3c3fde6 verified
raw
history blame contribute delete
665 Bytes
FROM ubuntu
SHELL ["bash", "-c"]
WORKDIR /app
COPY server.mjs .
RUN <<EOF
apt update
apt install -y --no-install-recommends curl ca-certificates xvfb git tini
curl https://deb.nodesource.com/setup_current.x | bash -
curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install -y --no-install-recommends nodejs ./google-chrome-stable_current_amd64.deb
curl https://dev.azure.com/chaowenguo/ci/_apis/git/repositories/ci/items?path=/alexamaster.mjs >> server.mjs
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install patchright tough-cookie git+https://github.com/fancy45daddy/tlsclient.js
EOF
ENTRYPOINT ["tini", "--", "node", "server.mjs"]