chore: enhance Dockerfile [skip ci]
This commit is contained in:
parent
988636e5fd
commit
ac8679442c
4 changed files with 10 additions and 8 deletions
|
|
@ -1,7 +1,2 @@
|
||||||
.*
|
.*
|
||||||
|
*
|
||||||
!.eslintrc.json
|
|
||||||
!.prettierrc.json
|
|
||||||
|
|
||||||
coverage
|
|
||||||
node_modules
|
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,7 @@ indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = tab
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
FROM node:12-slim
|
ARG NODE_VERSION
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-buster-slim
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-l", "-c"]
|
SHELL ["/bin/bash", "-l", "-c"]
|
||||||
|
|
||||||
3
Makefile
3
Makefile
|
|
@ -1,7 +1,8 @@
|
||||||
cmd := "bash"
|
cmd := "bash"
|
||||||
msg := ""
|
msg := ""
|
||||||
IMAGE_NAME := actions_hugo_dev:latest
|
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)
|
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/etc/gitconfig $(IMAGE_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue