Mainflux.mainflux/Dockerfile

35 lines
560 B
Docker
Raw Normal View History

2015-07-27 05:39:09 +08:00
###
# Mainflux Dockerfile
###
# Set the base image to Node, onbuild variant: https://registry.hub.docker.com/_/node/
2015-07-28 06:50:20 +08:00
FROM node:0.10.38
2015-07-27 05:39:09 +08:00
2015-07-28 06:50:20 +08:00
RUN apt-get update -qq && apt-get install -y build-essential
2015-07-27 05:39:09 +08:00
2015-07-28 06:50:20 +08:00
RUN mkdir /src
2015-07-27 05:39:09 +08:00
2015-07-28 07:10:32 +08:00
###
# Installations
###
# Add Gulp globally
2015-07-28 07:01:00 +08:00
2015-07-28 06:50:20 +08:00
RUN npm install -g gulp
RUN npm install -g nodemon
2015-07-27 05:39:09 +08:00
2015-07-28 07:01:00 +08:00
# Finally, install all project Node modules
2015-07-28 06:50:20 +08:00
WORKDIR /src
ADD package.json /src/package.json
2015-07-27 05:39:09 +08:00
RUN npm install
2015-07-28 06:50:20 +08:00
EXPOSE 8080
2015-07-27 05:39:09 +08:00
###
# Run main command from entrypoint and parameters in CMD[]
###
2015-07-28 07:01:00 +08:00
2015-07-27 05:39:09 +08:00
CMD [""]
# Set default container command
ENTRYPOINT gulp