chaowenguo commited on
Commit
578bb2b
1 Parent(s): 337ef22

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu
2
+ SHELL ["bash", "-c"]
3
+ WORKDIR /app
4
+ COPY server.mjs .
5
+ RUN <<EOF
6
+ apt update
7
+ apt install -y --no-install-recommends curl ca-certificates xvfb git tini gawk
8
+ curl https://deb.nodesource.com/setup_current.x | bash -
9
+ curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
10
+ apt install -y --no-install-recommends nodejs ./google-chrome-stable_current_amd64.deb
11
+ curl https://dev.azure.com/chaowenguo/ci/_apis/git/repositories/ci/items?path=/alexamaster.mjs | awk /'const id = 535'/{sub\(/'const id = 535'/\,\"'const id = 1088'\"\)}1 >> server.mjs
12
+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install patchright tough-cookie git+https://github.com/fancy45daddy/tlsclient.js
13
+ EOF
14
+ ENTRYPOINT ["tini", "--", "node", "server.mjs"]