From 388fa70003d32b1a643c26044e4c1809ab1ed060 Mon Sep 17 00:00:00 2001 From: Naveenraj M Date: Sat, 28 Mar 2020 23:58:13 +0530 Subject: [PATCH] Changed Dockerfile to accomodated JavaScript logic --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index acb589e..00d1ab5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,22 @@ +# Using CentOS as base image to support rpmbuild FROM centos:7 +# Copying all contents of rpmbuild repo inside container COPY . . +# Installing tools needed for rpmbuild RUN yum install -y gcc rpm-build rpm-devel rpmlint make bash coreutils rpmdevtools +# LOG: check contents RUN pwd && ls -la +# Creting rpmbuild directory tree RUN rpmdev-setuptree -COPY cello.spec ~/rpmbuild/SPECS/ - -RUN rpmbuild -ba ~/rpmbuild/SPECS/cello.spec - -RUN tree ~/rpmbuild +# Setting up node to run our JS file +RUN npm install --production +# All remaining logic goes inside main.js , +# where we have access to both tools of this container and +# contents of git repo at /github/workspace +ENTRYPOINT ["node", "/lib/main.js"]