This repository has been archived on 2020-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
garbro/Dockerfile

36 lines
1,016 B
Docker
Raw Normal View History

2020-03-15 15:59:00 +01:00
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"]