2017-05-14 11:36:57 +00:00
|
|
|
FROM node:7-alpine
|
2016-12-10 00:47:58 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src
|
|
|
|
|
2016-12-17 18:36:41 +00:00
|
|
|
COPY package.json /usr/src/package.json
|
2017-05-14 11:36:57 +00:00
|
|
|
RUN npm install --production
|
2016-12-10 00:47:58 +00:00
|
|
|
|
2016-12-17 18:36:41 +00:00
|
|
|
COPY src /usr/src
|
|
|
|
|
2017-01-12 22:27:53 +00:00
|
|
|
ENV PORT=80
|
|
|
|
EXPOSE 80
|
|
|
|
|
2017-01-22 16:54:45 +00:00
|
|
|
VOLUME /etc/auth-server
|
2017-01-21 19:24:35 +00:00
|
|
|
VOLUME /var/lib/auth-server
|
|
|
|
|
2017-01-22 16:54:45 +00:00
|
|
|
CMD ["node", "index.js", "/etc/auth-server/config.yml"]
|