FROM alpine:3.11
ADD jdk-8u202-linux-x64.tar.gz /usr/java/jdk/
ENV JAVA_HOME /usr/java/jdk
ENV PATH ${PATH}:${JAVA_HOME}/bin
ADD data-integration /usr/kettle/
WORKDIR /opt
version: '3'
services:
java8:
build:
context: ./
dockerfile: dockerfile
container_name: java:8-alpine
标签:java,jdk,apline,usr,HOME,PATH,docker,java8
From: https://www.cnblogs.com/guanchaoguo/p/17055115.html