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 update -y
|
||||||
RUN apt install -y make
|
RUN apt install -y make
|
||||||
|
|
||||||
|
# Make jar
|
||||||
|
COPY . .
|
||||||
|
RUN lein uberjar
|
||||||
|
|
||||||
Entrypoint ["make", "run"]
|
Entrypoint ["make", "run"]
|
||||||
|
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
.DEFAULT_GOAL := build
|
.DEFAULT_GOAL := build
|
||||||
|
|
||||||
run:
|
run:
|
||||||
while :; do lein run; sleep 1; done
|
while :; do java -jar target/uberjar/isahn-1.0.2-standalone.jar; sleep 1; done
|
||||||
|
|
||||||
build:
|
build:
|
||||||
make check
|
make check
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
importart-stories-alert-for-hacker-news:
|
isah:
|
||||||
restart: always
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: clojure:temurin-8-lein-bookworm-slim
|
image: clojure:temurin-8-lein-bookworm-slim
|
||||||
volumes:
|
volumes:
|
||||||
- ./Makefile:/usr/src/app/Makefile
|
- .:/usr/src/app/
|
||||||
- ./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
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user