Skip to content

Commit

Permalink
Feature/dockerize (#7)
Browse files Browse the repository at this point in the history
* Added Dockerfile

* Added Dockerfile and dockerignore
  • Loading branch information
deonbotha authored Nov 27, 2018
1 parent b85c8d7 commit b75966c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .dockerignore
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
23 changes: 23 additions & 0 deletions Dockerfile
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

0 comments on commit b75966c

Please sign in to comment.