Replace Vagrant with Docker

This commit is contained in:
2017-12-02 23:10:55 +03:00
parent 9b3fdf386b
commit 895c7b0b29
19 changed files with 3375 additions and 111 deletions

15
tools/npm Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
source .env
mkdir -p ./.npm
docker run \
--rm \
--interactive \
--tty \
--user $UID:$(id -g) \
--volume $PWD:/srv/homepage \
--volume $PWD/.npm:/tpm/.npm \
--env npm_config_cache=/tmp/.npm \
${HOMEPAGE_IMAGE} npm "$@"