aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-01-26 21:25:45 +0000
committersickcodes <[email protected]>2021-01-26 21:25:45 +0000
commit8db77770b05157d24a40f5341dd0104ad0e7fd43 (patch)
tree64422e9686433e9cbfc0cad0c669bdf6b92c442a /Dockerfile
parentzstd decompress instead of re-compress in README.md (diff)
downloaddocker-osx-8db77770b05157d24a40f5341dd0104ad0e7fd43.tar.xz
docker-osx-8db77770b05157d24a40f5341dd0104ad0e7fd43.zip
Remove pointless VOLUME command. Replace curl with wget.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 790d666..5eff72a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -193,14 +193,12 @@ ENV DISPLAY=:0.0
USER arch
-VOLUME ["/tmp/.X11-unix"]
-
-VOLUME /image
-
ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
+VOLUME ["/tmp/.X11-unix"]
+
CMD case "$(file --brief /image)" in \
- QEMU*) export IMAGE_PATH=/image;; \
+ QEMU*) export IMAGE_PATH=/image && sudo chown "$(id -u)":"$(id -g)" "${IMAGE_PATH}" 2>/dev/null || true;; \
directory*) export IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img;; \
esac \
; ./enable-ssh.sh && envsubst < ./Launch.sh | bash