-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
23 lines (18 loc) · 822 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
FROM eclipse-temurin:21.0.4_7-jre-jammy@sha256:d1c536be5ba42ea6d793b8eb67b8ced61fc66ae2c168d6c612113ebca661dd96
RUN apt-get update && apt-get upgrade -y && \
apt-get install libjemalloc2 -y && \
apt-get purge wget libbinutils libctf0 libctf-nobfd0 libncurses6 -y && \
apt-get autoremove -y && apt-get clean && \
rm -rf /var/lib/apt/lists/
RUN mkdir -p /app/data && chown 1001:1001 /app/data
COPY target/blaze-0.30.0-standalone.jar /app/
WORKDIR /app
USER 1001
ENV LD_PRELOAD="libjemalloc.so.2"
ENV STORAGE="standalone"
ENV INDEX_DB_DIR="/app/data/index"
ENV TRANSACTION_DB_DIR="/app/data/transaction"
ENV RESOURCE_DB_DIR="/app/data/resource"
ENV ADMIN_INDEX_DB_DIR="/app/data/admin-index"
ENV ADMIN_TRANSACTION_DB_DIR="/app/data/admin-transaction"
CMD ["java", "-jar", "blaze-0.30.0-standalone.jar"]