Created
March 18, 2019 01:57
-
-
Save ezy/966cd739082b69e7dafc22ccdb01c9c1 to your computer and use it in GitHub Desktop.
Dockerfile for centos 7 running node 10
This file contains hidden or 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:centos7 | |
# RUN cd ~ \ | |
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jre-8u202-linux-x64.rpm" \ | |
# yum -y localinstall jre-8u202-linux-x64.rpm \ | |
# rm ~/jre-8u202-linux-x64.rpm | |
# RUN cd ~ \ | |
# wget -c "http://mirror.centos.org/centos/7/updates/x86_64/Packages/java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm" \ | |
# yum -y --nogpgcheck localinstall java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm \ | |
# rm ~/java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm | |
# RUN curl -sL http://mirror.centos.org/centos/7/updates/x86_64/Packages/java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm | bash - && \ | |
# yum -y localinstall jre-8u202-linux-x64.rpm; \ | |
# yum clean all; \ | |
# rm ~/jre-8u202-linux-x64.rpm | |
WORKDIR /app | |
RUN yum -y update; yum clean all | |
RUN yum clean all && yum makecache fast; yum clean all | |
RUN curl -sL https://rpm.nodesource.com/setup_10.x | bash - && \ | |
yum -y install gcc-c++ make && \ | |
yum -y install nodejs && \ | |
yum clean all | |
RUN yum -y install "http://mirror.centos.org/centos/7/updates/x86_64/Packages/java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64.rpm"; yum clean all | |
# RUN yum -y install java-1.8.0-openjdk-headless; yum clean all | |
COPY package.json .npmrc ./ | |
COPY lib ./lib | |
RUN npm install | |
RUN node -v | |
COPY . . | |
EXPOSE 5000 | |
CMD npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment