Dockerize inliner command
This commit is contained in:
parent
c50489ff8d
commit
b9872ed624
|
@ -0,0 +1,8 @@
|
||||||
|
FROM node:10
|
||||||
|
|
||||||
|
RUN npm install inliner
|
||||||
|
|
||||||
|
ENTRYPOINT /node_modules/.bin/inliner
|
||||||
|
|
||||||
|
ADD *.png /
|
||||||
|
ADD *.css /
|
6
Makefile
6
Makefile
|
@ -2,4 +2,8 @@ IMAGES=$(wildcard *.jpg *.png)
|
||||||
CSSFILES=$(wildcard *.css)
|
CSSFILES=$(wildcard *.css)
|
||||||
|
|
||||||
index.min.html: index.html $(CSSFILES) $(IMAGES)
|
index.min.html: index.html $(CSSFILES) $(IMAGES)
|
||||||
inliner "$<" > "$@"
|
docker build -t inliner:latest .
|
||||||
|
docker run -i --rm inliner:latest <"$<" >"$@"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f index.min.html
|
||||||
|
|
Loading…
Reference in New Issue