forked from Rockbox/rockbox
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
78 lines (49 loc) · 1.29 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM rust:1.81-bookworm AS builder
ARG GITHUB_TOKEN
ARG TAG
ENV GITHUB_ACCESS_TOKEN=${GITHUB_TOKEN}
ENV GH_TOKEN=${GITHUB_TOKEN}
ENV TAG=${TAG}
RUN apt-get update && apt-get install -y build-essential \
libusb-dev \
libsdl1.2-dev \
libfreetype6-dev \
libunwind-dev \
curl \
wget \
zip \
unzip \
protobuf-compiler
RUN curl -Ssf https://pkgx.sh | sh
RUN pkgx install [email protected] protoc buf deno bun node@18
COPY . /app
WORKDIR /app
RUN mkdir -p build
WORKDIR /app/webui/rockbox
RUN bun install
RUN bun run build
WORKDIR /app/build
RUN ../tools/configure --target=sdlapp --type=N --lcdwidth=320 --lcdheight=240 --prefix=/usr/local
RUN make ziginstall -j$(nproc)
RUN deno install -A -r -g https://cli.fluentci.io -n fluentci
ENV PATH=/root/.local/bin:${PATH}
WORKDIR /app
RUN fluentci run --wasm . release
FROM debian:bookworm
RUN apt-get update && apt-get install -y \
libusb-dev \
libsdl1.2-dev \
libfreetype6-dev \
libunwind-dev \
alsa-utils \
libasound2 \
pulseaudio
COPY --from=builder /usr/local/lib/rockbox /usr/local/lib/rockbox
COPY --from=builder /usr/local/share/rockbox /usr/local/share/rockbox
COPY --from=builder /usr/local/bin/rockboxd /usr/local/bin/rockboxd
ENV SDL_VIDEODRIVER=dummy
EXPOSE 6061
EXPOSE 6062
EXPOSE 6063
EXPOSE 6600
CMD ["rockboxd"]