forked from miguelwill/debian-wine-mp3tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (40 loc) · 1.32 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
48
49
FROM debian:bookworm
LABEL maintainer "[email protected]"
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
x11vnc \
xvfb \
xterm \
curl && \
apt-get clean
# Create and configure the VNC user
ARG VNCPASS
ENV VNCPASS ${VNCPASS:-secret}
RUN useradd remote --create-home --shell /bin/bash --user-group --groups adm,sudo && \
echo "remote:$VNCPASS" | chpasswd
# Use the latest version of winetricks
RUN curl -SL 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' -o /usr/local/bin/winetricks \
&& chmod +x /usr/local/bin/winetricks
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
wget \
unrar-free unzip cabextract \
wine && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV VNC_PASSWORD secret
ENV mp3tag mp3tag
COPY main.sh /
ADD mp3tag.sh /usr/local/bin/
RUN chmod 777 /usr/local/bin/mp3tag.sh
COPY --chown=root:root $mp3tag /root/$mp3tag
# ADD mp3tagv298setup.exe /tmp/
# RUN cd /tmp && xvfb-run wine /tmp/mp3tagv298setup.exe /S && rm /tmp/mp3tagv298setup.exe
VOLUME /data
EXPOSE 5900/tcp
WORKDIR /data
ENTRYPOINT ["/main.sh"]
CMD ["default"]