FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/docker/Dockerfile at master · joeferner/node-java · GitHub
joeferner
/
node-java
Public
Notifications
You must be signed in to change notification settings
Fork
288
Star
1.9k
Code
Issues
208
Pull requests
7
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-java
/
docker
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 855 Bytes
Breadcrumbs
node-java
/
docker
/
Dockerfile
Copy path
File metadata and controls
24 lines (20 loc) · 855 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM
ubuntu:16.04
RUN
apt-get update -y
RUN
apt-get install -y curl wget tar git python build-essential
#
Java
RUN
\
wget https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/linux-i586/jdk-8u261-linux-x64.tar.gz -O /opt/jdk-8u261-linux-x64.tar.gz \
&& tar -xzf /opt/jdk-8u261-linux-x64.tar.gz -C /opt \
&& rm /opt/jdk-8u261-linux-x64.tar.gz \
&& ln -s /opt/jdk1.8.0_261 /opt/jdk
ENV
PATH $PATH:/opt/jdk/bin
ENV
JAVA_HOME /opt/jdk
ENV
_JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
#
Node
RUN
\
wget -O /opt/node-v11.2.0-linux-x64.tar.gz https://nodejs.org/dist/v11.2.0/node-v11.2.0-linux-x64.tar.gz \
&& tar -xzf /opt/node-v11.2.0-linux-x64.tar.gz -C /opt \
&& rm /opt/node-v11.2.0-linux-x64.tar.gz \
&& ln -s /opt/node-v11.2.0-linux-x64 /opt/node
ENV
PATH $PATH:/opt/node/bin
ENV
USER=root
Back
|
FazBrowse Home
|
New Git URL