compose build, fix chmod

pull/4/head
zidesm 11 months ago
parent bfb5f1209d
commit ec02487dc8

@ -10,9 +10,8 @@ RUN mv iventoy-${IVENTOY} iventoy
FROM alpine:3.18.2
WORKDIR /app
# Copy and install inventoy
# Copy iventoy
COPY --from=init /iventoy/iventoy /app
RUN chmod +x /app/iventoy
RUN chmod +x /app/iventoy.sh
CMD ["/bin/bash", "-c", "bash /iventoy.sh start && sleep infinity"]

@ -8,7 +8,15 @@ services:
ports:
- 16000:16000
- 26000:26000
env:
IVENTOY_API_ALL=1
volumes:
- /ISO_PATH:/iventoy/iso
- /ISO_PATH:/iventoy/iso
iventoy-build:
build:
context: .
dockerfile: Dockerfile
labels:
IVENTOY: 1.0.07
args:
IVENTOY: 1.0.07

Loading…
Cancel
Save