forked from instantdb/instant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (21 loc) · 971 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM amazoncorretto:22 AS builder
WORKDIR /app
RUN yum -y install tar gzip git unzip
RUN curl -L -O https://github.com/clojure/brew-install/releases/download/1.11.3.1463/linux-install.sh
RUN echo '0c41063a2fefb53a31bc1bc236899955f759c5103dc0495489cdd74bf8f114bb linux-install.sh' | sha256sum -c
RUN chmod +x linux-install.sh
RUN ./linux-install.sh
RUN curl -L -O https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2024.3-docker.zip
RUN echo '4fb651cef6a4c0cb9c27a07ecb8d9438c0f258119c78aa743385ef4b2c0edd1e YourKit-JavaProfiler-2024.3-docker.zip' | sha256sum -c
RUN unzip YourKit-JavaProfiler-2024.3-docker.zip
COPY deps.edn .
RUN clojure -P
COPY . .
RUN clojure -X:deps tree
RUN clojure -T:build uber
FROM amazoncorretto:22
WORKDIR /app
COPY --from=builder /app/target/instant-standalone.jar ./target/instant-standalone.jar
COPY --from=builder /app/YourKit-JavaProfiler-2024.3 /usr/local/YourKit-JavaProfiler-2024.3
EXPOSE 5000
EXPOSE 6005