Skip to content

Instantly share code, notes, and snippets.

@scintill
Created May 31, 2019 23:07
Show Gist options
  • Save scintill/199c47a32a48cf52c9e415624715ccbc to your computer and use it in GitHub Desktop.
Save scintill/199c47a32a48cf52c9e415624715ccbc to your computer and use it in GitHub Desktop.
wine dockerfile
FROM scottyhardy/docker-wine@sha256:ca0481f5c953cbb9c40ce6e91c01f9bf06ea7de73094663f13931778f1060a58
# use win32
ARG WINEARCH=win32
# I don't want HOME as a volume, but baked in to the image
RUN usermod --home /home/wineuser2 wineuser && cp -pr /etc/skel ~wineuser && chown wineuser:wineuser ~wineuser
WORKDIR /home/wineuser2
# install winetricks prereqs
# https://github.com/Winetricks/winetricks/blob/05dbc02cdad4a7c07304670a671b3ff3e9bad70a/src/winetricks#L45
RUN apt-get update && \
apt-get install -y binutils cabextract p7zip-full unrar unzip wget zenity xz-utils && \
rm -rf /var/lib/apt/lists/*
# install fonts
USER wineuser
RUN winetricks allfonts
# start as root as the base image does
USER root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment