diff --git a/Dockerfile b/Dockerfile index f9a6bb0..2ae17bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:3.12 LABEL maintainer sndsgd -ARG NODE_VERSION=12.17.0-r0 -ARG LESS_VERSION=3.11.3 +ARG NODE_VERSION +ARG LESS_VERSION RUN apk add --update --no-cache nodejs=${NODE_VERSION} nodejs-npm \ && npm install -g less@${LESS_VERSION} diff --git a/Makefile b/Makefile index 2d34e67..2feace2 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CWD := $(shell pwd) -NODE_VERSION ?= 12.17.0-r0 -LESS_VERSION ?= 3.11.3 +NODE_VERSION ?= 12.18.3-r0 +LESS_VERSION ?= 3.12.2 IMAGE_NAME ?= sndsgd/less IMAGE := $(IMAGE_NAME):$(LESS_VERSION) @@ -23,3 +23,7 @@ build: build-image .PHONY: help help: build-image docker run --rm $(IMAGE) --help + +.PHONY: version +version: build-image + docker run --rm $(IMAGE) --version