Skip to content

Commit a0946f5

Browse files
committed
Add 'make docker' and optimize Docker build
Signed-off-by: Greg Haskins <greg@manetu.com>
1 parent 1681392 commit a0946f5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ RUN \
1010
make \
1111
wget
1212

13+
COPY project.clj .
14+
COPY lein .
15+
RUN ./lein deps
16+
1317
COPY . .
14-
RUN ls -la && make all
18+
RUN make bin
1519

1620
ENV MANETU_URL="https://ingress.manetu-platform"
1721
ENV LOG_LEVEL="info"

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ scan:
2121
#$(LEIN) kibit
2222
$(LEIN) eastwood
2323

24+
.PHONY: docker
25+
docker:
26+
docker build -t $(NAME):latest .
27+
2428
.PHONY: test
2529
test:
2630
$(LEIN) cloverage --fail-threshold $(COVERAGE_THRESHOLD) $(patsubst %,-e %, $(COVERAGE_EXCLUSION)) | perl -pe 's/\e\[?.*?[\@-~]//g'

0 commit comments

Comments
 (0)