-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
30 lines (24 loc) · 913 Bytes
/
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
FROM alpine:3.10
LABEL maintainer="Sean Cheung <[email protected]>"
ARG ARCH=x86
ARG CN_MIRROR=false
RUN if [ "$CN_MIRROR" = true ]; then sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories; fi
ENV WINEDLLOVERRIDES="mscoree,mshtml="
ENV WINEPREFIX="/root/wine"
ENV SCREEN="0 1280x1024x8"
ENV DISPLAY=":1"
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
RUN set -ex && \
echo $ARCH > /etc/apk/arch && \
echo "Installing dependencies..." && \
apk add --no-cache xvfb freetype supervisor && \
export repo_mirror=$(head -1 /etc/apk/repositories | sed -n 's/\/alpine.*$//p') && \
apk add --no-cache -X $repo_mirror/alpine/edge/community wine && \
echo "Initializing wine..." && \
wineboot && \
wineserver -w && \
echo "Clean Up..." && \
rm -rf /var/cache/apk/*
COPY supervisord.conf /etc/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]