Skip to content

Instantly share code, notes, and snippets.

@hugopeixoto

hugopeixoto/Dockerfile Secret

Last active Mar 30, 2021
Embed
What would you like to do?
FROM ubuntu:21.04
ENV TZ=Europe/Lisbon
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update
RUN apt -y install git ack vim
RUN git clone -b wayland https://gitlab.collabora.com/alf/wine/
RUN cp -r /wine /wine32
RUN cp -r /wine /wine64
RUN apt -y install \
build-essential flex bison \
libwayland-dev libwlroots-dev \
libx11-dev libfreetype6-dev \
libasound2-dev libgsm1-dev libjpeg8-dev \
liblcms2-dev libldap2-dev libmpg123-dev \
libopenal-dev libv4l-dev libx11-dev \
libxinerama-dev libxml2-dev zlib1g-dev \
libwayland-dev libxrandr-dev libsane-dev \
libxcomposite-dev libpulse-dev libvulkan-dev \
libtiff-dev libfontconfig1-dev libxslt-dev \
libkrb5-dev libxi-dev libdbus-1-dev \
libxcursor-dev libpcap-dev libxxf86vm-dev \
libgnutls28-dev libxxf86vm-dev libcapi20-dev \
libudev-dev libcups2-dev libgstreamer1.0-dev \
libxkbfile-dev libgettextpo-dev
RUN dpkg --add-architecture i386 && apt-get update
RUN apt -y install gcc-multilib \
libx11-dev:i386 libfreetype6-dev:i386 \
libasound2-dev:i386 libgsm1-dev:i386 libjpeg8-dev:i386 \
liblcms2-dev:i386 libldap2-dev:i386 libmpg123-dev:i386 \
libopenal-dev:i386 libv4l-dev:i386 libx11-dev:i386 \
libxinerama-dev:i386 libxml2-dev:i386 zlib1g-dev:i386 \
libwayland-dev:i386 libxrandr-dev:i386 libsane-dev:i386 \
libxcomposite-dev:i386 libpulse-dev:i386 libvulkan-dev:i386 \
libtiff-dev:i386 libfontconfig1-dev:i386 libxslt-dev:i386 \
libkrb5-dev:i386 libxi-dev:i386 libdbus-1-dev:i386 \
libxcursor-dev:i386 libpcap-dev:i386 libxxf86vm-dev \
libgnutls28-dev:i386 libxxf86vm-dev:i386 libcapi20-dev:i386 \
libudev-dev:i386 libcups2-dev:i386 libgstreamer1.0-dev:i386 \
libxkbfile-dev:i386 libgettextpo-dev:i386
WORKDIR /wine64
RUN ./configure --with-wayland --with-x --enable-win64
RUN make -j4
RUN apt -y install libegl-dev:i386 gettext libgles2-mesa-dev:i386 libgl-dev:i386
WORKDIR /wine32
RUN ./configure --with-wayland --with-x --with-wine64=/wine64
RUN make -j4
WORKDIR /wine64
RUN make install
WORKDIR /wine32
RUN make install
RUN apt -y install unicode-data libharfbuzz0b libharfbuzz0b:i386
RUN apt -y install libgl1-mesa-dri libglx-mesa0 vim
RUN apt -y install libgl1-mesa-dri:i386 libglx-mesa0:i386
RUN apt -y install locales
RUN locale-gen --purge "en_US.UTF-8"
RUN update-locale LANG=en_US.UTF-8
RUN dpkg-reconfigure --frontend noninteractive locales
RUN adduser hugopeixoto
RUN adduser hugopeixoto video
USER hugopeixoto
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV XDG_RUNTIME_DIR=/run/user/1000
ENV WAYLAND_DISPLAY=wayland-0
ENV WINEPREFIX=/hostdata/wine
ENV WINEDEBUG=-d3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment