This repository was archived by the owner on Jan 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (40 loc) · 1.68 KB
/
Dockerfile
File metadata and controls
53 lines (40 loc) · 1.68 KB
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
48
49
50
51
52
53
FROM golang:1.13-stretch AS launcher-builder
WORKDIR /root
COPY launcher /root
RUN go build -o launcher
FROM ubuntu:bionic
MAINTAINER Aitor González
ENV UID 0
ENV GUI 0
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
WORKDIR /root
RUN dpkg --add-architecture i386
RUN apt-get update && \
apt-get -y install nano unzip wget tar curl gnupg software-properties-common xvfb xdotool supervisor net-tools fluxbox
ENV WINEDLLOVERRIDES=mscoree=d;mshtml=d
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key && \
apt-key add winehq.key && \
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' && \
add-apt-repository ppa:cybermax-dexter/sdl2-backport && \
apt-get -y install winehq-stable
# Add a web UI for debug purposes
RUN apt-get update && apt-get -y install x11vnc
WORKDIR /root/
RUN wget -O - https://github.com/novnc/noVNC/archive/v1.1.0.tar.gz | tar -xzv -C /root/ && mv /root/noVNC-1.1.0 /root/novnc && ln -s /root/novnc/vnc_lite.html /root/novnc/index.html
RUN wget -O - https://github.com/novnc/websockify/archive/v0.9.0.tar.gz | tar -xzv -C /root/ && mv /root/websockify-0.9.0 /root/novnc/utils/websockify
WORKDIR /app
RUN curl https://www.emule-project.net/files/emule/eMule0.51d.zip --output /tmp/emule.zip && \
unzip /tmp/emule.zip -d /tmp && mv /tmp/eMule0.51d/* /app
ENV WINEPREFIX /app/.wine
ENV WINEARCH win32
ENV DISPLAY :0
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY scripts /app
COPY --from=launcher-builder /root/launcher /app
COPY config/emule /app/config
EXPOSE 4711/tcp 23732/tcp 23733/udp
VOLUME /app/config /data
ENTRYPOINT ["/app/init.sh"]