-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
61 lines (51 loc) · 1.75 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
# Run RetroArch Web Player in a container
#
# docker run --rm -it -d -p 8080:80 retroarch-web-nightly
#
# Stage 1: Builder
FROM debian:bullseye AS builder
LABEL maintainer="Antoine Boucher <[email protected]>"
# Install required packages
RUN apt-get update && apt-get install -y \
ca-certificates \
unzip \
sed \
p7zip-full \
coffeescript \
xz-utils \
nginx \
wget \
vim \
parallel \
git \
python3 \
python3-pip \
lbzip2 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Download and install RetroArch Web Player
ENV ROOT_WWW_PATH /var/www/html
WORKDIR /var/www/html
COPY setup_retroarch.sh /tmp/setup_retroarch.sh
RUN chmod +x /tmp/setup_retroarch.sh
RUN bash /tmp/setup_retroarch.sh ${ROOT_WWW_PATH}
# Install Python dependencies for InternetArchive script
RUN pip3 install requests typer rich
COPY InternetArchive.py /tmp/InternetArchive.py
# Run the InternetArchive script
RUN chmod +x /tmp/InternetArchive.py
RUN python3 /tmp/InternetArchive.py
COPY sort_mkdir.sh /tmp/sort_mkdir.sh
# Sort
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - GameBoy"
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - GameBoy Advance"
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - GameBoy Color"
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - Nintendo 64"
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - Nintendo Entertainment System"
RUN bash /tmp/sort_mkdir.sh "${ROOT_WWW_PATH}/downloads/Nintendo - Super Nintendo Entertainment System"
# Set up the environment for the RetroArch Web Player
WORKDIR /var/www/html
# COPY index.html /var/www/html/index.html
EXPOSE 80
COPY entrypoint.sh /
CMD ["sh", "/entrypoint.sh"]