-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
50 lines (40 loc) · 1.16 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
FROM debian:bookworm-slim
# Set the working directory
WORKDIR /altserver
# Install necessary system dependencies
RUN apt-get update && apt-get install -y \
libavahi-compat-libdnssd-dev \
libusb-1.0-0-dev \
libclang-dev \
libusbmuxd-dev \
libimobiledevice-utils \
ideviceinstaller \
usbmuxd \
avahi-daemon \
avahi-utils \
libnss-mdns \
avahi-discover \
curl \
screen \
dbus \
jq \
supervisor \
xz-utils \
&& apt-get clean
# Copy the altserver directory to the container
COPY scripts /altserver/scripts
COPY lib.tar.xz /altserver/lib.tar.xz
# Make the scripts executable
RUN chmod -R +x /altserver/scripts
# Create the logs directory
RUN mkdir -p /altserver/logs
# Copy the supervisord configuration file
COPY conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Set the anisette server environment variable
ENV ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969
# Make the entrypoint script executable
RUN chmod +x /altserver/scripts/docker-entrypoint.sh
# Use supervisord as the entrypoint
ENTRYPOINT ["/altserver/scripts/docker-entrypoint.sh"]
# Run the supervisor in the foreground
CMD ["-n"]