'How do I install openjdk-16-jdk for my nodejs app using my dockerfile?
I have a Dockerfile with the following configuration:
FROM node:16
WORKDIR /usr/src/app
COPY package*.json ./
RUN apt-get update && apt search openjdk && apt-get install -y default-jre && npm install
COPY . .
EXPOSE 80
EXPOSE 25565
CMD [ "node", "app.js" ]
the only available packages for jdk are version 11. what do I need to add to get openjdk-16-jdk installed for this nodejs app.
Context: This app spawns a 1.17 version minecraft server that requires openjdk version 16.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
