Created
March 15, 2019 06:28
-
-
Save raviwu/524a21ecd938d0f4c5008be35ae1c949 to your computer and use it in GitHub Desktop.
CentOS openJDK Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
exec $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment