-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 954 Bytes
/
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
FROM debian:jessie
MAINTAINER Devan Lai <devan.lai@gmail.com>
RUN dpkg --add-architecture i386
RUN apt-get -y update && apt-get install -y wine:i386 xvfb procps
COPY bin/* /tmp/bin/
# Do some minimal wine initialization
ENV WINEDLLOVERRIDES="mscoree,mshtml="
RUN if [ ! -d ${WINEPREFIX:-~/.wine/} ]; then \
xvfb-run -a wine winecfg /D && \
/tmp/bin/waitfor.sh wineserver; \
fi
# Configure as Vista to avoid OS-too-old warnings
RUN wine reg ADD "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion" \
/v "ProductName" /t REG_SZ /d "Microsoft Windows Vista";
COPY exe/*.exe /tmp/exe/
# Run the installer
RUN xvfb-run -a wine \
/tmp/exe/dipfree_en.exe /silent /hide; \
/tmp/bin/waitfor.sh wineserver;
# Verify it succeeded
RUN xvfb-run -a \
test -f "`winepath 'C:\\Program Files\\DipTrace\\Schematic.exe'`" && \
test -f "`winepath 'C:\\Program Files\\DipTrace\\Pcb.exe'`"; \
/tmp/bin/waitfor.sh wineserver;
# Cleanup temp files
RUN rm -rf /tmp/*