1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Add files for creating docker image

* Base on a small node image (alpine-node)
* Exclude some files from docker build to make the build go faster
This commit is contained in:
Stig Kleppe-Jørgensen 2015-06-17 10:00:36 +02:00
parent d3a765c86a
commit dd6ea520af
2 changed files with 16 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
docker-compose.yml
node_modules
artifact.json
finnbuild.json

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM mhart/alpine-node:0.10.38
COPY . .
RUN npm install --production && \
npm run build
EXPOSE 4242
ENTRYPOINT ["npm"]
CMD ["start"]