I need to run the java build with the docker image I'm using to build the node. Since the base is Debian, google it appropriately and write as follows.
Dockerfile
FROM node:6-slim
RUN echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list && \
apt-get update -y && \
apt-get install -t jessie-backports openjdk-8-jdk -y
However, docker build gives an error. sad.
I also considered alpine, but I didn't have the packages I wanted to use, so I'd like to do something with Debian.
** mkdir -p / usr / share / man / man1
** before putting openjdk.
FROM node:6-slim
RUN mkdir -p /usr/share/man/man1
echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list && \
apt-get update -y && \
apt-get install -t jessie-backports openjdk-8-jdk -y
However, after packing various necessary packages, the size of the image became 1.4GB. Well, it's a docker image for development, and it should allow a heavy docker image killing man.
Recommended Posts