19 lines
419 B
Docker
19 lines
419 B
Docker
FROM clojure:temurin-8-lein-bookworm-slim
|
|
|
|
# set work directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# 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
|
|
|
|
# Make jar
|
|
COPY . /usr/src/app
|
|
RUN lein uberjar
|
|
|
|
Entrypoint ["bash", "-c", "while :; do java -jar target/uberjar/isahn-1.0.2-standalone.jar; sleep 1; done"]
|