Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 927 Bytes
FROM node:0.10-slim
MAINTAINER matthias.luebken@gmail.com
LABEL Version="1.0.0"
WORKDIR /app
# Describe container dependencies
LABEL api.LINKS.redis=""\
api.LINKS.redis.image="redis:latest"\
api.LINKS.redis.port="6379"\
api.LINKS.redis.description="For caching results from OWM API."\
api.LINKS.redis.mandatory="true"
# Set and describe available ENVs
LABEL api.ENV.OPENWEATHERMAP_APIKEY="" \
api.ENV.OPENWEATHERMAP_APIKEY.description="Access key for OpenWeatherMap. See http://openweathermap.org/appid for details." \
api.ENV.OPENWEATHERMAP_APIKEY.mandatory="true"
# Expose and describe available ports
EXPOSE 1337
LABEL api.EXPOSE.1337="" \
api.EXPOSE.1337.protocol="http" \
api.EXPOSE.1337.description="The main endpoint of this service."
# install dependencies
ADD package.json /app/
RUN npm install
# install app
ADD server.js /app/
ENTRYPOINT ["node", "server.js"]