2017-10-19 22:42:33 +00:00
|
|
|
FROM node:8.7.0-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-10-19 22:42:33 +00:00
|
|
|
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add make g++ python
|
|
|
|
|
2017-05-14 11:36:57 +00:00
|
|
|
RUN npm install --production
|
2017-10-19 22:42:33 +00:00
|
|
|
RUN apk del python make g++ && rm -f /var/cache/apk/*
|
2016-12-10 00:47:58 +00:00
|
|
|
|
2017-10-06 22:09:42 +00:00
|
|
|
COPY dist/server /usr/src/server
|
|
|
|
COPY dist/shared /usr/src/shared
|
2016-12-17 18:36:41 +00:00
|
|
|
|
2017-01-12 22:27:53 +00:00
|
|
|
ENV PORT=80
|
|
|
|
EXPOSE 80
|
|
|
|
|
2017-06-28 13:57:58 +00:00
|
|
|
VOLUME /etc/authelia
|
|
|
|
VOLUME /var/lib/authelia
|
2017-01-21 19:24:35 +00:00
|
|
|
|
2017-10-06 22:09:42 +00:00
|
|
|
CMD ["node", "server/src/index.js", "/etc/authelia/config.yml"]
|