-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (36 loc) · 1.68 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends software-properties-common apt-transport-https apt-utils curl wget cabextract gpg-agent git sudo xz-utils net-tools wget gnupg libncurses-dev
ENV TZ Asia/Tokyo
RUN apt-get install -y \
language-pack-ja-base language-pack-ja \
tzdata
RUN echo "${TZ}" > /etc/timezone \
&& ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
ENV LANG ja_JP.UTF-8
RUN dpkg --add-architecture i386 && \
curl -sS -o - https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
apt-get update && apt upgrade && \
apt-get install -y --install-recommends winehq-stable && \
apt-get install -y playonlinux q4wine winetricks && \
apt-get purge software-properties-common -y && \
apt-get autoclean -y && rm -rf /var/lib/apt/lists/*
COPY keyboard /etc/default/keyboard
RUN export uid=1000 gid=1000 && \
mkdir -p /home/wineuser && \
echo "wineuser:x:${uid}:${gid}:Developer,,,:/home/wineuser:/bin/bash" >> /etc/passwd && \
echo "wineuser:x:${uid}:" >> /etc/group && \
echo "wineuser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wineuser && \
chmod 0440 /etc/sudoers.d/wineuser && \
chown ${uid}:${gid} -R /home/wineuser
USER wineuser
ENV HOME /home/wineuser
WORKDIR /home/wineuser
# RUN mkdir -p ${WINEPREFIX:-$HOME/.wine}/drive_c/users/wineuser/AppData/Local/Amazon/Kindle
#RUN winetricks cjkfonts vcrun2013
# RUN winetricks fakejapanese
# RUN winetricks fontsmooth=rgb