2017-10-20 05:42:33 +07:00
|
|
|
FROM node:8.7.0-alpine
|
2016-12-10 07:47:58 +07:00
|
|
|
|
|
|
|
WORKDIR /usr/src
|
|
|
|
|
2016-12-18 01:36:41 +07:00
|
|
|
COPY package.json /usr/src/package.json
|
2017-10-20 05:42:33 +07:00
|
|
|
|
|
|
|
RUN apk --update add --no-cache --virtual \
|
|
|
|
.build-deps make g++ python && \
|
|
|
|
npm install --production && \
|
|
|
|
apk del .build-deps
|
2016-12-10 07:47:58 +07:00
|
|
|
|
2017-10-07 05:09:42 +07:00
|
|
|
COPY dist/server /usr/src/server
|
|
|
|
COPY dist/shared /usr/src/shared
|
2016-12-18 01:36:41 +07:00
|
|
|
|
2017-01-13 05:27:53 +07:00
|
|
|
ENV PORT=80
|
|
|
|
EXPOSE 80
|
|
|
|
|
2017-06-28 20:57:58 +07:00
|
|
|
VOLUME /etc/authelia
|
|
|
|
VOLUME /var/lib/authelia
|
2017-01-22 02:24:35 +07:00
|
|
|
|
2017-10-07 05:09:42 +07:00
|
|
|
CMD ["node", "server/src/index.js", "/etc/authelia/config.yml"]
|