Skip to content

Commit 98924b8

Browse files
committed
fixes
1 parent f38b338 commit 98924b8

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG JDK_VERSION="25"
22
ARG UBUNTU_VERSION="25.10"
33

4-
FROM ubuntu:${UBUNTU_VERSION} as builder
4+
FROM ubuntu:${UBUNTU_VERSION} AS builder
55

66
RUN apt-get update; \
77
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends locales binutils; \
@@ -40,7 +40,7 @@ ENV PATH=$JAVA_HOME/bin:$PATH
4040
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
4141

4242
RUN DEBIAN_FRONTEND=noninteractive apt-get update; \
43-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl wget ca-certificates fontconfig locales binutils lsof curl openssl git tar sqlite3 libfreetype6 iproute2 libstdc++6 libmimalloc2.0 git-lfs tini zip unzip jq redis-tools; \
43+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl wget ca-certificates fontconfig locales binutils lsof curl openssl git tar sqlite3 libfreetype6 iproute2 libstdc++6 libmimalloc3 git-lfs tini zip unzip jq valkey-tools; \
4444
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
4545
locale-gen en_US.UTF-8; \
4646
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y; \
@@ -72,6 +72,13 @@ RUN set -eux; \
7272
# https://openjdk.java.net/jeps/341
7373
java -Xshare:dump;
7474

75+
## Setup user and working directory
76+
RUN useradd -m -d /home/container -s /bin/bash container
77+
USER container
78+
ENV USER=container HOME=/home/container LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libmimalloc.so.3.0 MIMALLOC_ALLOW_LARGE_OS_PAGES=1 MIMALLOC_PURGE_DELAY=100
79+
WORKDIR /home/container
80+
81+
7582
RUN echo Verifying install ...; \
7683
fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; \
7784
echo javac --version; \
@@ -80,12 +87,6 @@ RUN echo Verifying install ...; \
8087
java --version; \
8188
echo Complete.
8289

83-
## Setup user and working directory
84-
RUN useradd -m -d /home/container -s /bin/bash container
85-
USER container
86-
ENV USER=container HOME=/home/container LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libmimalloc.so.2 MIMALLOC_ALLOW_LARGE_OS_PAGES=1 MIMALLOC_PURGE_DELAY=100
87-
WORKDIR /home/container
88-
8990
STOPSIGNAL SIGINT
9091

9192
COPY --chown=container:container entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)