forked from garybowers/iventoy_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (14 loc) · 794 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:bookworm-slim
MAINTAINER [email protected]
ENV DEBIANFRONTEND=noninteractive
ARG IVENTOY_VERSION=1.0.20
RUN apt update -y && apt install -y --no-install-recommends curl supervisor libglib2.0-dev libevent-dev libwim-dev
RUN curl -kL https://github.com/ventoy/PXE/releases/download/v${IVENTOY_VERSION}/iventoy-${IVENTOY_VERSION}-linux-free.tar.gz -o /tmp/iventoy.tar.gz && \
tar -xvzf /tmp/iventoy.tar.gz -C / && \
mv /iventoy-${IVENTOY_VERSION} /iventoy && \
mkdir -p /var/log/supervisor
COPY files/supervisord.conf /etc/supervisor/supervisord.conf
VOLUME /iventoy/iso /iventoy/data /iventoy/log /iventoy/user
RUN ln -sf /proc/1/fd/1 /iventoy/log/log.txt
EXPOSE 26000 16000 10809 69/udp
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]