-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
41 lines (36 loc) · 1.26 KB
/
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
39
40
41
#*******************************************************************************
# Copyright (c) 2023 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html,
# or the MIT License which is available at https://opensource.org/licenses/MIT.
# SPDX-License-Identifier: EPL-2.0 OR MIT
#*******************************************************************************
FROM ubuntu:24.04
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=ibm-semeru-runtimes:open-17-jdk $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
# Generate and set the locale to UTF-8.
RUN apt-get -y update && apt-get install -y locales
RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
RUN apt-get update && apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:git-core/ppa
RUN apt-get upgrade -y && apt-get install -y --no-install-recommends \
bash \
coreutils \
curl \
dumb-init \
git \
git-lfs \
gnupg \
jq \
openssh-client \
rsync \
fonts-dejavu \
unzip \
wget \
zip
RUN ln -sf /bin/bash /bin/sh