bridge-node-server/Dockerfile
Martin Donnelly 57bd6c8e6a init
2018-06-24 21:15:03 +01:00

29 lines
742 B
Docker

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"]