forked from costrouc/pysrim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.srim
34 lines (25 loc) · 1023 Bytes
/
Dockerfile.srim
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
FROM debian:buster
MAINTAINER Chris Ostrouchov <[email protected]>
ARG SRIM_DIR="/tmp"
RUN dpkg --add-architecture i386
RUN apt update && \
apt install wget unzip xvfb wine32 cabextract -y && \
rm -rf /var/lib/apt/lists/*
# winetricks
RUN cd /opt && \
wget -q https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && \
chmod +x winetricks && \
cp winetricks /usr/local/bin
# https://appdb.winehq.org/objectManager.php?sClass=version&iId=27152
RUN xvfb-run winetricks -q comdlg32ocx msflxgrd richtx32 vb5run comctl32ocx tabctl32
RUN mkdir -p $SRIM_DIR && \
cd $SRIM_DIR && \
wget -q https://gitlab.com/costrouc/pysrim/raw/master/assets/srim.2013.zip && \
unzip srim.2013.zip && \
cd "$SRIM_DIR/srim" && \
echo "1" > $SRIM_DIR/srim/TRIMAUTO
COPY examples/input/TRIM.Ni.IN $SRIM_DIR/srim/TRIM.IN
WORKDIR "$SRIM_DIR/srim"
CMD ["xvfb-run", "-a", "wine", "TRIM.exe"]
# Modify $SRIM_DIR/srim/TRIM.IN for input file
# Outputfiles in $SRIM_DIR/srim/