2023-08-10 16:19:36 +00:00
|
|
|
# Download the latest iventoy version
|
2023-07-05 12:41:03 +00:00
|
|
|
FROM ziggyds/alpine-utils:latest AS init
|
2023-07-05 13:40:42 +00:00
|
|
|
ARG IVENTOY
|
2023-07-05 12:41:03 +00:00
|
|
|
WORKDIR /iventoy
|
2023-08-10 16:19:36 +00:00
|
|
|
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
|
2023-07-05 12:41:03 +00:00
|
|
|
|
2023-08-10 16:19:36 +00:00
|
|
|
# Build image
|
2023-07-05 15:17:14 +00:00
|
|
|
FROM ubuntu:22.04
|
2023-07-05 13:43:18 +00:00
|
|
|
WORKDIR /app
|
2023-07-05 13:51:03 +00:00
|
|
|
# Copy iventoy
|
2023-07-05 13:40:42 +00:00
|
|
|
COPY --from=init /iventoy/iventoy /app
|
2023-07-05 13:51:03 +00:00
|
|
|
RUN chmod +x /app/iventoy.sh
|
2023-07-05 12:41:03 +00:00
|
|
|
|
2023-07-05 14:28:29 +00:00
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
2023-07-05 15:28:24 +00:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2023-07-05 15:17:14 +00:00
|
|
|
|
|
|
|
# Webui
|
|
|
|
EXPOSE 26000/tcp
|
|
|
|
# HTTP server
|
|
|
|
EXPOSE 16000/tcp
|
2023-07-05 14:28:29 +00:00
|
|
|
CMD /entrypoint.sh
|