-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
56 lines (44 loc) · 1.26 KB
/
Dockerfile
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
50
51
52
53
54
55
56
FROM --platform=linux/amd64 node:16.16.0
RUN apt update \
&& apt upgrade -y \
&& apt install -y \
libasound2-dev \
libatk-bridge2.0-dev \
libcanberra-gtk-dev \
libdrm-dev \
libgconf2-dev \
libgtk-3-dev \
libnss3-dev \
libxshmfence-dev \
libxss-dev \
libxtst-dev
# Install wine
RUN apt install -y software-properties-common
RUN dpkg --add-architecture i386 && \
wget -nc https://dl.winehq.org/wine-builds/winehq.key && \
apt-key add winehq.key && \
add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
RUN apt-get update
RUN apt-get install -y --install-recommends winehq-stable innoextract
# Install InnoSetup
COPY scripts/innosetup/iscc /usr/local/bin/iscc
RUN chmod +x /usr/local/bin/iscc
COPY scripts/innosetup/innoinstall.sh /innoinstall.sh
RUN chmod +x /innoinstall.sh
RUN /bin/bash -c '/innoinstall.sh'
RUN rm /innoinstall.sh
WORKDIR /app
COPY package.json ./
RUN npm install -g bower \
&& npm install -g gulp \
&& npm install
# Install prince
COPY gulpfile.js ./
COPY src/js/lib ./src/js/lib
COPY src/js/prince-packager.js ./src/js/
RUN gulp prince
COPY . .
RUN chmod -R +x scripts/git/*.sh
RUN bower install --allow-root
VOLUME /root
CMD npm start