chore: enhance Dockerfile [skip ci]

This commit is contained in:
peaceiris 2020-01-25 11:46:07 +09:00
parent 988636e5fd
commit ac8679442c
4 changed files with 10 additions and 8 deletions

View file

@ -1,7 +1,8 @@
cmd := "bash"
msg := ""
IMAGE_NAME := actions_hugo_dev:latest
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --file ./__tests__/Dockerfile
NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/etc/gitconfig $(IMAGE_NAME)