Alexander Mills :
I am not sure why I expected this to work:
# Dockerfile
FROM node:6
FROM java:8
but it doesn't really work - looks like the first command is ignored, and second command works.
Is there a straightforward way to install both Node.js and Java in a Docker container?
Ultimately the problem I am trying to solve is that I am getting an ENOENT error when running Selenium Webdriver -
[20:38:50] W/start - Selenium Standalone server encountered an error: Error: spawn java ENOENT
And right now I assume it's because Java is not installed in the container.
Max Farsikov :
You can use single FROM
per generated image.
Try to use node
as a base image and install java to it.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=432712&siteId=1