Skip to content

Commit

Permalink
fix: developer image
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Dec 13, 2023
1 parent 983816e commit f974f42
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,7 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

FROM docker.io/openjdk:22-jdk-slim

RUN apt-get update && apt-get install -y git rsync curl && apt-get clean all

ARG MAVEN_VERSION=3.9.6
ARG MAVEN_BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries

RUN mkdir -p /usr/local/apache-maven /usr/local/apache-maven/ref \
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${MAVEN_BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/local/apache-maven --strip-components=1 \
&& rm -f /tmp/apache-maven.tar.gz \
&& ln -s /usr/local/apache-maven/bin/mvn /usr/bin/mvn

ARG NODE_VERSION=v21.4.0
ARG NODE_DISTRO=linux-x64
ARG NODE_BASE_URL=https://nodejs.org/dist/${NODE_VERSION}

RUN curl -fsSL ${NODE_BASE_URL}/node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz -o node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz \
&& mkdir -p /usr/local/lib/nodejs \
&& tar -xzf node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz -C /usr/local/lib/nodejs \
&& rm node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz
ENV PATH=/usr/local/lib/nodejs/node-${NODE_VERSION}-${NODE_DISTRO}/bin/:$PATH
FROM quay.io/devfile/universal-developer-image:ubi8-latest

RUN npm install yarn synp -g

Expand Down

0 comments on commit f974f42

Please sign in to comment.