Newer
Older
wine-x11-novnc-japanese / Dockerfile
@Haoling Haoling on 12 Jan 2023 2 KB install gdiplus
FROM solarkennedy/wine-x11-novnc-docker

RUN sed -i'~' -E "s@http://(..\.)?(archive|security)\.ubuntu\.com/ubuntu@http://ftp.jaist.ac.jp/pub/Linux/ubuntu@g" /etc/apt/sources.list
RUN apt-get update && \
	apt-get upgrade -y && \
# Cleaning up.
	apt-get autoremove -y --purge && \
	apt-get clean -y && \
	rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN apt-get update && \
# To set locale to japanese
	apt-get install -y --no-install-recommends locales && \
# Will use vlgothic as wine font
	apt-get install -y --no-install-recommends fonts-vlgothic && \
# install winetricks
	apt-get install -y --no-install-recommends winetricks cabextract && \
# Cleaning up.
	apt-get autoremove -y --purge && \
	apt-get clean -y && \
	rm -rf /root/.cache && \
	rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Installation of winetricks tricks as wine user.
RUN winecfg && \
	xvfb-run -a winetricks -q corefonts && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q dotnet40 && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q vulkansdk && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q d9vk && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q d3dx9 && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q d3dcompiler_47 && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q cjkfonts && \
	rm -rf /root/.cache
RUN winecfg && \
	xvfb-run -a winetricks -q gdiplus && \
	rm -rf /root/.cache

# Install locale
RUN locale-gen ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8

RUN cp /usr/share/fonts/truetype/vlgothic/VL-PGothic-Regular.ttf /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf /root/prefix32/drive_c/windows/Fonts
RUN cat /root/prefix32/user.reg
RUN sed -e "s/Ume Gothic/VL Gothic/g" -e "s/Ume P Gothic/VL PGothic/g" -e "s/Ume Mincho/VL Gothic/g" -e "s/Ume P Mincho/VL PGothic/g" -e "s/Ume UI Gothic/VL PGothic/g" -i /root/prefix32/user.reg
RUN sed -e 's%/opt/wine-stable/lib/wine/%/opt/wine-stable/lib/wine/i386-windows/%' -i /etc/supervisor/conf.d/supervisord.conf