2024-05-26 15:36:02 +02:00
|
|
|
FROM clojure:temurin-8-lein-bookworm-slim
|
|
|
|
|
|
|
|
# set work directory
|
2024-05-28 22:42:42 +02:00
|
|
|
WORKDIR /usr/src/app/isahn
|
2024-05-26 15:36:02 +02:00
|
|
|
|
|
|
|
# set time
|
|
|
|
RUN ln -fs /usr/share/zoneinfo/Europe/Madrid /etc/localtime
|
|
|
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
|
|
|
|
|
|
|
# Install make
|
|
|
|
RUN apt update -y
|
|
|
|
RUN apt install -y make
|
|
|
|
|
2024-05-28 22:10:24 +02:00
|
|
|
# Make jar
|
2024-05-28 22:38:57 +02:00
|
|
|
COPY . .
|
2024-05-28 22:10:24 +02:00
|
|
|
RUN lein uberjar
|
|
|
|
|
2024-05-28 22:26:13 +02:00
|
|
|
Entrypoint ["bash", "-c", "while :; do java -jar target/uberjar/isahn-1.0.2-standalone.jar; sleep 1; done"]
|