-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm64
49 lines (43 loc) · 1.91 KB
/
Dockerfile.arm64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM node:18
RUN apt-get update && apt-get upgrade -y
RUN echo "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable main\ndeb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable main\ndeb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security/ stable-security main\ndeb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security/ stable-security main\ndeb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable-updates main\ndeb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian stable-updates main" | tee /etc/apt/sources.list.d/docker.list
RUN touch /etc/apt/preferences.d/debian-chromium && echo "Explanation: Allow installing chromium from the debian repo.\nPackage: chromium*\nPin: origin \"*.debian.org\"\nPin-Priority: 100\n\nExplanation: Avoid other packages from the debian repo.\nPackage: *\nPin: origin \"*.debian.org\"\nPin-Priority: 1" > /etc/apt/preferences.d/debian-chromium
RUN apt-get update
RUN apt-get install chromium -y
WORKDIR /app/bot_voter/source
COPY source/package*.json ./
RUN npm install
RUN apt-get update && apt-get install \
build-essential \
curl \
jq \
xvfb \
xauth \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
fonts-thai-tlwg \
fonts-khmeros \
fonts-kacst \
fonts-freefont-ttf \
libxss1 \
libnss3 \
libx11-xcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxtst6 \
libglib2.0-0 \
libnss3 \
libgtk-3-0 \
libasound2 \
libgbm1 \
libwayland-server0 \
--no-install-recommends -y
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app/bot_voter/
COPY . .
WORKDIR /app/bot_voter/source
RUN make
WORKDIR /app/bot_voter/
CMD ["./run.sh"]