Last active
December 16, 2019 20:06
-
-
Save jensmeder/4367328cd095dce0cd0416371553a28a to your computer and use it in GitHub Desktop.
7-Zip (x86) in Ubuntu Docker Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM i386/ubuntu:18.04 | |
# Install wget | |
RUN apt-get update | |
RUN apt-get install -y wget | |
# Install Wine | |
RUN apt-get install -y software-properties-common gnupg2 | |
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key | |
RUN apt-key add winehq.key | |
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' | |
RUN apt-get install -y --install-recommends winehq-stable winbind | |
# Turn off Fixme warnings | |
ENV WINEDEBUG=fixme-all | |
# Setup a Wine prefix | |
ENV WINEPREFIX=/root/.7z | |
ENV WINEARCH=win32 | |
RUN winecfg | |
# Copy your app or installer | |
RUN wget https://www.7-zip.org/a/7z1900.msi | |
# Install your application | |
RUN wineboot -u && msiexec /i /7z1900.msi | |
# Run application | |
ENTRYPOINT ["wine", "/root/.7z/drive_c/Program Files/7-Zip/7z"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment