diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ca5d074 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +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 && \ + xvfb-run -a winetricks -q dotnet40 && \ +# Cleaning up. + 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