Oracle Java 8 on Docker Ubuntu

memorandum

FROM ubuntu:16.04

ENV  JAVA_HOME=/usr/lib/jvm/java-8-oracle \
     DEBIAN_FRONTEND=noninteractive


RUN apt-get update && \
    apt-get install -y software-properties-common wget && \
    add-apt-repository -y ppa:webupd8team/java && \
    apt-get upgrade -y && \
    apt-get update && \
    echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections && \
    apt-get install -y oracle-java8-set-default && \
    apt-get clean

If there are other packages you need, add them before the last line "apt-get clean". Always forget the echo line.

Recommended Posts

Oracle Java 8 on Docker Ubuntu
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Docker on Ubuntu Server 20.04
Install Java on WSL Ubuntu 18.04
Run java applet on ubuntu
Put Oracle Java 8 on CircleCI 2
Install java with Ubuntu 16.04 based Docker
Java9 (based on Oracle JVM) catchup
Enable Java 8 and Java 11 SDKs on Ubuntu
Java cannot be installed on Ubuntu 13.04
Liberty on Docker
Run NordVPN on Docker (Windows) Ubuntu container
Install OpenJDK (Java) on the latest Ubuntu
Use docker in proxy environment on ubuntu 20.04.1
Oracle Java Day 2017
Microservices 101-I tried putting Docker on Ubuntu-
Oracle Java Day 2017
/ n \ n docker java
Build OpenCV with Java Wrapper on Ubuntu 18.04
Try putting Docker in ubuntu on WSL
Until you run apache on ubuntu on docker
Run Ubuntu + ROS with Docker on Mac
tmux on Ubuntu
Redmine on Docker
[Java] Build Java development environment on Ubuntu & check execution
Build Java x Spring x VSCode x Gradle on Docker (1)
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
Screen recording on Ubuntu 20.04
Let's touch on Java
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Install Java on Mac
Docker installation on CentOS 6
Received Oracle Java Bronze
Use Flutter on Ubuntu
Install pyqt5 on ubuntu
python notes on docker
Run PostgreSQL on Java
Install Docker on Manjaro
Install Ruby on Ubuntu 20.04
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
About Java 10 Docker support
Use mkdir on ubuntu
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run tiscamera on Ubuntu 18.04
M.S. docker on Windows
Build Zabbix on Ubuntu 20.04
Docker installation on WSL2
Run phpunit on Docker
Creating a lightweight Java environment that runs on Docker
Using Flutter on Ubuntu (Part 2)
Java version control on macOS
Create SSL certificate on Ubuntu 18.04
Install Docker on Raspberry Pi
Install Docker on Windows 10 PRO
Building WebGIS on Ubuntu20.04 LTS