Skip to content

Commit e34f643

Browse files
authored
Merge pull request #34 from commonlispbr/new-docker-server
[Makefile] Use new DOCKER_IMG and add server rule
2 parents c923ad4 + ea764a7 commit e34f643

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ EMACS_LOAD := -l $(EMACS_INIT)
33
EMACS_FLAGS := --batch --kill $(EMACS_LOAD)
44
ORG_FILES := $(wildcard *.org)
55
HTML_FILES := $(patsubst %.org, %.html, $(ORG_FILES))
6-
DOCKER_IMG := ryukinix/lerax
6+
DOCKER_IMG := commonlispbr/emacs
77
USER := $(shell id -u):$(shell id -g)
88
DOCKER_RUN := docker run -w /tmp \
99
-v $(shell pwd):/tmp \
@@ -24,5 +24,8 @@ shell:
2424
@$(DOCKER_RUN) $(DOCKER_IMG) $< $(EMACS_FLAGS) -f org-html-export-to-html
2525
@$(DOCKER_RUN) --entrypoint=/bin/chown $(DOCKER_IMG) $(USER) "$*.html"
2626

27+
server:
28+
python3 -m http.server 8000
29+
2730
clean:
2831
rm -rf *.html

0 commit comments

Comments
 (0)