This commit is contained in:
Andros Fenollosa 2024-05-28 22:10:24 +02:00
parent 38f7afd50e
commit 7c35d0480d
4 changed files with 8 additions and 8 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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