This repository has been archived by the owner on May 17, 2019. It is now read-only.
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 #8 from sphereio/dockerize
Dockerize application
- Loading branch information
Showing
9 changed files
with
53 additions
and
26 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,7 @@ | ||
coverage | ||
data | ||
logs | ||
test | ||
tmp | ||
.npmignore | ||
.travis.yml |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ lib | |
test | ||
.coveralls.yml | ||
coverage | ||
logs | ||
tmp | ||
*.siege | ||
strongloop.json |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ node_modules | |
*.log | ||
src | ||
test | ||
logs | ||
data | ||
coverage | ||
.travis.yml | ||
|
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,22 @@ | ||
FROM node:0.12 | ||
|
||
MAINTAINER SPHERE.IO Support <support@sphere.io> | ||
|
||
WORKDIR /app | ||
|
||
VOLUME /app/tmp | ||
|
||
ENV APP_ENV=docker NODE_ENV=production | ||
|
||
RUN \ | ||
npm config set registry http://registry.npmjs.org/ && \ | ||
npm i -g phantomjs-prebuilt | ||
|
||
COPY ./container/files / | ||
COPY . /app | ||
|
||
RUN ./container/compile | ||
|
||
EXPOSE 8888 | ||
|
||
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
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,11 @@ | ||
#!/bin/bash | ||
|
||
mkdir /var/log/sphere-express-pdf | ||
|
||
npm config set registry http://registry.npmjs.org/ | ||
npm i --unsafe-perm --no-optional | ||
npm run build | ||
|
||
# This is necessary in order to ensure the correct | ||
# native binaries of phantomjs | ||
npm rebuild |
Empty file.
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
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