-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from stakater-docker/add-resources
Add resources
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
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" ] |
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
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" | ||
} |