update Dockerfile
This commit is contained in:
@@ -6,6 +6,7 @@ RUN apt-get update \
|
|||||||
ca-certificates \
|
ca-certificates \
|
||||||
git \
|
git \
|
||||||
nano \
|
nano \
|
||||||
|
unzip \
|
||||||
vim-tiny \
|
vim-tiny \
|
||||||
&& apt-get auto-remove -y \
|
&& apt-get auto-remove -y \
|
||||||
&& apt-get clean -y \
|
&& apt-get clean -y \
|
||||||
@@ -15,7 +16,7 @@ RUN apt-get update \
|
|||||||
ARG NEXUS_REPO=https://rm.vilanet.fr/repository/raw
|
ARG NEXUS_REPO=https://rm.vilanet.fr/repository/raw
|
||||||
RUN --mount=type=secret,id=nexus_login,target=/tmp/nexus_login \
|
RUN --mount=type=secret,id=nexus_login,target=/tmp/nexus_login \
|
||||||
--mount=type=secret,id=nexus_pwd,target=/tmp/nexus_pwd \
|
--mount=type=secret,id=nexus_pwd,target=/tmp/nexus_pwd \
|
||||||
curl -Lo /tmp/jetbrains.zip ${NEXUS_REPO}/jetbrains.zip
|
curl -Lo /tmp/jetbrains.zip -u$(cat nexus_login):$(cat nexus_pwd) ${NEXUS_REPO}/jetbrains.zip
|
||||||
|
|
||||||
ENV MAVEN_HOME=/opt/maven
|
ENV MAVEN_HOME=/opt/maven
|
||||||
ENV PATH=$MAVEN_HOME/bin:$PATH
|
ENV PATH=$MAVEN_HOME/bin:$PATH
|
||||||
@@ -31,5 +32,10 @@ RUN mkdir -p $MAVEN_HOME \
|
|||||||
# Set the default user
|
# Set the default user
|
||||||
USER ubuntu
|
USER ubuntu
|
||||||
|
|
||||||
|
RUN mkdir -p /home/ubuntu/.local/share && \
|
||||||
|
unzip -d /home/ubuntu/.local/share /tmp/jetbrains.zip
|
||||||
|
|
||||||
|
ENV IDEA_VM_OPTIONS=/home/ubuntu/.local/share/jetbrains/vmoptions/idea.vmoptions
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /home/ubuntu
|
WORKDIR /home/ubuntu
|
||||||
|
|||||||
Reference in New Issue
Block a user