Skip to content

Commit

Permalink
Merge pull request #1 from stakater-docker/add-resources
Browse files Browse the repository at this point in the history
Add resources
  • Loading branch information
Muhammad Hamza Zaib authored Aug 31, 2020
2 parents e5933e6 + 53bf49b commit 5ebc38c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:12.18.3

RUN echo "deb http://ftp.us.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get remove -y binutils \
&& apt-get install -y git xvfb fluxbox x11vnc libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 jq \
&& apt-get clean all

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD ARG NODE_ENV
ONBUILD ENV NODE_ENV $NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install && npm cache clean --force
ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env groovy
@Library('github.com/stakater/stakater-pipeline-library@master') _

pushDockerImage {
dockerRepositoryURL = "docker.io"
}

0 comments on commit 5ebc38c

Please sign in to comment.