Skip to content

Instantly share code, notes, and snippets.

@raviwu
Created March 15, 2019 06:28
Show Gist options
  • Save raviwu/524a21ecd938d0f4c5008be35ae1c949 to your computer and use it in GitHub Desktop.
Save raviwu/524a21ecd938d0f4c5008be35ae1c949 to your computer and use it in GitHub Desktop.
CentOS openJDK Dockerfile
FROM centos:7
RUN yum -y update && yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel epel-release libffi-devel gcc-c++ make openssl-devel git sudo
ENV JAVA_HOME /etc/alternatives/jre
# Add entrypoint script
ADD scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
#!/bin/bash
exec $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment