Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
feat: jdk-8
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Swanson committed Dec 7, 2018
1 parent bc75b77 commit 4fb313f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions 8.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ARG IMAGE_TAG="8-jdk"
ARG NODE_MAJOR_VERSION="10"

FROM openjdk:${IMAGE_TAG}

LABEL organization="Ourchitecture"
LABEL license="MIT"
LABEL url="https://github.com/ourchitecture/docker-ibmcloud-cli"

USER root

# Install node 10
RUN set -x \
&& apt-get update \
&& apt-get install -my gnupg curl \
&& curl -sL https://deb.nodesource.com/setup_${NODE_MAJOR_VERSION}.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest \
&& node --version \
&& npm --version

CMD ['java']
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
ARG IMAGE_TAG="11-jdk"
ARG NODE_MAJOR_VERSION="10"

FROM openjdk:${IMAGE_TAG}

LABEL organization="Ourchitecture"
LABEL license="MIT"
LABEL url="https://github.com/ourchitecture/docker-ibmcloud-cli"

ARG NODE_MAJOR_VERSION="10"

USER root

# Install node 10
Expand All @@ -19,3 +18,5 @@ RUN set -x \
&& npm install -g npm@latest \
&& node --version \
&& npm --version

CMD ['java']

0 comments on commit 4fb313f

Please sign in to comment.