From 1fff5458b31bd897bf984f2178142c46f2bb3917 Mon Sep 17 00:00:00 2001 From: Sthope Date: Tue, 23 Apr 2024 19:23:30 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0aa09e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +LABEL org.opencontainers.image.authors="hopelessautomations@gmail.com" +LABEL version="0.1" +LABEL maintaner="Sthopeless" + +# Download the latest iventoy version +FROM sthopeless/alpine-utils:latest AS init +ARG IVENTOY +WORKDIR /iventoy +RUN echo ${IVENTOY} && \ + wget https://github.com/ventoy/PXE/releases/download/v${IVENTOY}/iventoy-${IVENTOY}-linux-free.tar.gz && \ + tar -xvf *.tar.gz && \ + rm -rf iventoy-${IVENTOY}-linux.tar.gz && \ + mv iventoy-${IVENTOY} iventoy + +# Build image +FROM ubuntu:22.04 +ENV AUTO_START_PXE=true +WORKDIR /app +# Copy iventoy +COPY --from=init /iventoy/iventoy /app +RUN chmod +x /app/iventoy.sh + +COPY ./entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Webui +EXPOSE 26000/tcp +# HTTP server +EXPOSE 16000/tcp +CMD /entrypoint.sh \ No newline at end of file