-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Dockerfile * Added Dockerfile and dockerignore
- Loading branch information
deonbotha
authored
Nov 27, 2018
1 parent
b85c8d7
commit b75966c
Showing
2 changed files
with
41 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 @@ | ||
deploy/ | ||
coverage/ | ||
node_modules/ | ||
.dockerignore | ||
.editorconfig | ||
.git/ | ||
.gitignore | ||
.istanbul.yml | ||
circle.yml | ||
docker-compose.circle.yml | ||
docker-compose.dev.yml | ||
docker-compose.functional.yml | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
|
||
sonar-project.properties |
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,23 @@ | ||
FROM mhart/alpine-node:8.9.4 | ||
USER root | ||
|
||
WORKDIR /opt/central-event-processor | ||
COPY src /opt/central-event-processor/src | ||
COPY config /opt/central-event-processor/config | ||
COPY package.json /opt/central-event-processor/ | ||
COPY app.js /opt/central-event-processor/ | ||
COPY docs /opt/central-event-processor/docs | ||
|
||
RUN apk --no-cache add git | ||
RUN apk add --no-cache -t build-dependencies make gcc g++ python libtool autoconf automake \ | ||
&& cd $(npm root -g)/npm \ | ||
&& npm config set unsafe-perm true \ | ||
&& npm install -g node-gyp | ||
|
||
RUN npm install --production && \ | ||
npm uninstall -g npm | ||
|
||
RUN apk del build-dependencies | ||
|
||
EXPOSE 3080 | ||
CMD node app.js |