Update Dockerfile

This commit is contained in:
zidesm 2023-07-05 15:40:42 +02:00
parent b6e49bd762
commit 854db3becb

View File

@ -1,15 +1,18 @@
# Get latest iventoy version
# y use google drive -_-, it's to easy to use github so we can automate getting the latest versions and build this container
FROM ziggyds/alpine-utils:latest AS init
ARG IVENTOY
WORKDIR /iventoy
COPY ./iventoy-1.0.07-linux.tar.gz /iventoy/iventoy-1.0.07-linux.tar.gz
RUN tar -xvf *.tar.gz
RUN rm -rf iventoy-1.0.07-linux.tar.gz
RUN mv iventoy-${IVENTOY} iventoy
FROM alpine:3.18.2
WORKDIR /
# Copy and install inventoy
COPY --from=init /iventoy /
RUN chmod +x /app/lib/iventoy
COPY --from=init /iventoy/iventoy /app
RUN chmod +x /app/iventoy
CMD ["/bin/bash", "-c", "bash /iventoy.sh start && sleep infinity"]