Update
This commit is contained in:
parent
38f7afd50e
commit
7c35d0480d
@ -11,4 +11,8 @@ RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
RUN apt update -y
|
||||
RUN apt install -y make
|
||||
|
||||
# Make jar
|
||||
COPY . .
|
||||
RUN lein uberjar
|
||||
|
||||
Entrypoint ["make", "run"]
|
||||
|
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
run:
|
||||
while :; do lein run; sleep 1; done
|
||||
while :; do java -jar target/uberjar/isahn-1.0.2-standalone.jar; sleep 1; done
|
||||
|
||||
build:
|
||||
make check
|
||||
|
@ -1,13 +1,9 @@
|
||||
services:
|
||||
importart-stories-alert-for-hacker-news:
|
||||
isah:
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: clojure:temurin-8-lein-bookworm-slim
|
||||
volumes:
|
||||
- ./Makefile:/usr/src/app/Makefile
|
||||
- ./isahn_history.json:/usr/src/app/isahn_history.json
|
||||
- ./config.edn:/usr/src/app/config.edn
|
||||
- ./src/:/usr/src/app/src/
|
||||
- ./project.clj:/usr/src/app/project.clj
|
||||
- .:/usr/src/app/
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user