mirror of
https://github.com/ziggyds/iventoy
synced 2024-11-11 13:11:10 +00:00
Update Dockerfile
This commit is contained in:
parent
b6e49bd762
commit
854db3becb
@ -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"]
|
Loading…
Reference in New Issue
Block a user