FROM registry.eu-gb.bluemix.net/ibmnode:latest ## Add the node server directory. ADD ./node_server /node_server ## Standard updates. Note to pin a version use: package-foo=1.3.* \ RUN apt-get update -q && apt-get install -y -q \ curl \ graphicsmagick \ && apt-get clean -q \ && rm -rf /var/lib/apt/lists/* ## Enhance default password rules. RUN sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 1/' /etc/login.defs ## Enhance default password rules. RUN echo 'Europe/London' > /etc/timezone RUN dpkg-reconfigure -f noninteractive tzdata ## Expose the appropriate ports. EXPOSE 80 ## Install the node modules. WORKDIR /node_server RUN npm install ## Execute the code. CMD ["node", "node_server.js"]