mirror of https://github.com/ziggyds/iventoy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
625 B
Docker
25 lines
625 B
Docker
# Download the latest iventoy version
|
|
FROM ziggyds/alpine-utils:latest AS init
|
|
ARG IVENTOY
|
|
WORKDIR /iventoy
|
|
RUN echo ${IVENTOY} && \
|
|
wget https://github.com/healthchecks/healthchecks/archive/refs/tags/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
|
|
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 |