Files
slot/.devcontainer/server/Dockerfile

36 lines
1.1 KiB
Docker
Raw Normal View History

2025-06-07 10:20:28 +02:00
ARG VARIANT=21-jdk
FROM eclipse-temurin:${VARIANT}
2025-06-06 20:39:19 +02:00
2025-06-07 10:20:28 +02:00
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
ca-certificates \
git \
nano \
vim-tiny \
&& apt-get auto-remove -y \
&& apt-get clean -y \
&& chsh -s $(which bash) ubuntu \
&& echo 'export PS1="\e[01;32m\u\e[m:\e[01;34m\w\e[m\$ "' >> /home/ubuntu/.bashrc
2025-06-06 20:39:19 +02:00
2025-09-20 20:20:56 +02:00
ARG NEXUS_REPO=https://rm.vilanet.fr/repository/raw
RUN --mount=type=secret,id=nexus_login,target=/tmp/nexus_login \
--mount=type=secret,id=nexus_pwd,target=/tmp/nexus_pwd \
curl -Lo /tmp/jetbrains.zip ${NEXUS_REPO}/jetbrains.zip
2025-06-07 10:20:28 +02:00
ENV MAVEN_HOME=/opt/maven
ENV PATH=$MAVEN_HOME/bin:$PATH
2025-07-23 17:38:06 +00:00
ARG MAVEN_VERSION=3.9.11
2025-06-07 10:20:28 +02:00
ARG BASE_URL=https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries
RUN mkdir -p $MAVEN_HOME \
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& tar -xzf /tmp/apache-maven.tar.gz -C $MAVEN_HOME --strip-components=1 \
&& rm -f /tmp/apache-maven.tar.gz
2025-06-06 20:39:19 +02:00
# Set the default user
2025-06-07 10:20:28 +02:00
USER ubuntu
2025-06-06 20:39:19 +02:00
# Set the working directory
2025-06-07 10:20:28 +02:00
WORKDIR /home/ubuntu