mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Add a Dockerfile.dev for manual testing during development.
In some cases mounting node_modules in the container leads to shared library linking issues (libcrypt.so) for instance.
This commit is contained in:
parent
d923ae334a
commit
a8460d3c7b
20
Dockerfile.dev
Normal file
20
Dockerfile.dev
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
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 && \
|
||||||
|
apk del .build-deps
|
||||||
|
|
||||||
|
COPY dist/server /usr/src/server
|
||||||
|
COPY dist/shared /usr/src/shared
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
VOLUME /etc/authelia
|
||||||
|
VOLUME /var/lib/authelia
|
||||||
|
|
||||||
|
CMD ["node", "server/src/index.js", "/etc/authelia/config.yml"]
|
|
@ -3,16 +3,16 @@ services:
|
||||||
authelia:
|
authelia:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./server:/usr/src/server
|
- ./server:/usr/src/server
|
||||||
- ./dist/server/src/public_html:/usr/src/server/src/public_html
|
- ./dist/server/src/public_html:/usr/src/server/src/public_html
|
||||||
- ./client:/usr/src/client
|
- ./client:/usr/src/client
|
||||||
- ./shared:/usr/src/shared
|
- ./shared:/usr/src/shared
|
||||||
- ./node_modules:/usr/src/node_modules
|
|
||||||
- ./config.minimal.yml:/etc/authelia/config.yml:ro
|
- ./config.minimal.yml:/etc/authelia/config.yml:ro
|
||||||
- /tmp/authelia:/tmp/authelia
|
- /tmp/authelia:/tmp/authelia
|
||||||
|
- ./users_database.yml:/etc/authelia/users_database.yml
|
||||||
environment:
|
environment:
|
||||||
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user