Added docker-dev target to run website in docker container
This commit is contained in:
parent
ed342a0adf
commit
12e572e807
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue