36 lines
1,016 B
Docker
36 lines
1,016 B
Docker
|
FROM r.sbruder.de/unrar as program
|
||
|
|
||
|
RUN apk add --no-cache jq
|
||
|
|
||
|
RUN wget -O garbro.rar $(wget -q -O- https://api.github.com/repos/morkt/GARbro/releases|jq -r '[.[] | select(.prerelease == false)][0].assets[].browser_download_url'|grep -E '\.rar$') \
|
||
|
&& mkdir garbro \
|
||
|
&& cd garbro \
|
||
|
&& unrar x ../garbro.rar
|
||
|
|
||
|
FROM tianon/wine
|
||
|
|
||
|
RUN apt-get update \
|
||
|
&& apt-get -y install \
|
||
|
cabextract \
|
||
|
wget \
|
||
|
xvfb \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
RUN wget -nv -O /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
|
||
|
&& chmod +x /usr/local/bin/winetricks
|
||
|
|
||
|
RUN adduser --gecos '' --disabled-password wine
|
||
|
|
||
|
USER wine
|
||
|
|
||
|
ENV WINEARCH=win32
|
||
|
|
||
|
RUN wineboot \
|
||
|
&& sh -c 'Xvfb :0 & \
|
||
|
DISPLAY=:0 winetricks -q dotnet46' \
|
||
|
&& rm -rf /home/wine/.cache/winetricks/
|
||
|
|
||
|
COPY --from=program --chown=wine /garbro /home/wine/.wine/drive_c/users/wine/garbro
|
||
|
|
||
|
ENTRYPOINT ["wine", "/home/wine/.wine/drive_c/users/wine/garbro/GARbro.GUI.exe"]
|