forked from Bloody160/bdsx-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (53 loc) · 1.89 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
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:jammy
RUN apt update -y
RUN apt upgrade -y
RUN apt install -y \
git \
dos2unix \
curl \
libfreetype6 \
libfreetype-dev \
libunwind8 \
wget \
software-properties-common
RUN curl -sL https://deb.nodesource.com/setup_20.x -o /tmp/nodesource_setup.sh
RUN bash /tmp/nodesource_setup.sh
RUN apt-get install nodejs -y
# Stage 2
WORKDIR /root/bdsx
RUN git init
RUN git config pull.ff only
RUN git remote add upstream https://github.com/pokebedrock/bdsx
# Stage 3
ENV node_env=production
ENV WINEARCH=win64
ENV WINEDLLOVERRIDES="VCRUNTIME140_1=n,=b"
ENV WINEDEBUG=fixme-all
# Stage 4
COPY --chmod=0755 ./entrypoint.sh /root/entrypoint.sh
COPY --chmod=0755 ./bdsx.sh /root/bdsx.sh
COPY --chmod=0755 bin/* /usr/local/bin/
# Stage 5
RUN dpkg --add-architecture i386
RUN mkdir -pm755 /etc/apt/keyrings
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
# RUN mkdir -pm755 /etc/apt/keyrings && \
# wget -NP /etc/apt/keyrings https://dl.winehq.org/wine-builds/winehq.key && \
# wget -O /etc/apt/sources.list.d/winehq-jammy.sources https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources && \
# dpkg --add-architecture i386
# RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
# RUN sed -i s@/usr/share/keyrings/@/etc/apt/keyrings/@ /etc/apt/sources.list.d/winehq-jammy.sources
RUN apt update -y
RUN apt install --install-recommends winehq-stable -y
# Stage 6
WORKDIR /root
RUN dos2unix entrypoint.sh
RUN dos2unix bdsx.sh
# RUN dpkg -i wine_bdsx.deb
# RUN rm -f wine_bdsx.deb
# Stage 7
EXPOSE 19132
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT /bin/sh -c "sh /root/entrypoint.sh"