Added docker-dev target to run website in docker container

This commit is contained in:
Rickard von Essen 2016-12-28 22:04:10 +01:00
parent ed342a0adf
commit 12e572e807
No known key found for this signature in database
GPG Key ID: E0C0327388876CBA
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@ all: build
init:
bundle
docker-dev:
docker run -it --expose 4567 -P -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.3.1 \
bash -c "apt-get update && apt-get -qy install curl git libgmp3-dev nodejs && \
gem install bundler && make dev"
dev: init
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server