mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
7b68a543bf
Uses the crypt() function to do password encryption. This function handles several schemes such as: MD5, Blowfish, SHA1, SHA2. SHA-512 is used in Authelia for best security. The algorithm is fully described in https://www.akkadia.org/drepper/SHA-crypt.txt The 'crypt3' npm package has been added as a dependency to use the crypt() function. The package needs to be compiled in order to call the c function, that's why python, make and C++ compiler are installed temporarily in the Docker image.
22 lines
426 B
Docker
22 lines
426 B
Docker
FROM node:8.7.0-alpine
|
|
|
|
WORKDIR /usr/src
|
|
|
|
COPY package.json /usr/src/package.json
|
|
|
|
RUN apk --update add --no-cache --virtual \
|
|
.build-deps make g++ python && \
|
|
npm install --production && \
|
|
apk del .build-deps
|
|
|
|
COPY dist/server /usr/src/server
|
|
COPY dist/shared /usr/src/shared
|
|
|
|
ENV PORT=80
|
|
EXPOSE 80
|
|
|
|
VOLUME /etc/authelia
|
|
VOLUME /var/lib/authelia
|
|
|
|
CMD ["node", "server/src/index.js", "/etc/authelia/config.yml"]
|