forked from mozilla/fxa-auth-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
86 lines (58 loc) · 1.76 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM mhart/alpine-node:4
RUN apk add --update --virtual build-dependencies \
git make gcc g++ python
ENV NODE_ENV=prod
ENV LOG_LEVEL=info
ENV LOG_FORMAT=pretty
ENV PUBLIC_URL=http://127.0.0.1:9000
# ENV SECRET_KEY_FILE ../config/secret-key.json
# ENV PUBLIC_KEY_FILE ../config/public-key.json
ENV TRUSTED_JKUS=http://127.0.0.1:8080/.well-known/public-keys,http://127.0.0.1:10139/.well-known/public-keys
ENV DB_BACKEND=httpdb
ENV IP_ADDRESS=127.0.0.1
ENV PORT=9000
# fraud / abuse server url
# env CUSTOMS_SERVER_URL http://127.0.0.1:7000
env CUSTOMS_SERVER_URL=none
# The url of the corresponding fxa-content-server instance
ENV CONTENT_SERVER_URL=http://127.0.0.1:3030
ENV SMTP_HOST=127.0.0.1
ENV SMTP_PORT=25
ENV SMTP_SECURE=false
ENV SMTP_USER=
ENV SMTP_PASS=
ENV HTTPDB_URL=http://127.0.0.1:8000
ENV VERIFIER_VERSION=0
ENV RESEND_BLACKOUT_PERIOD=0
# set to true to serve directly over https
ENV USE_TLS=false
ENV LOCKOUT_ENABLED=true
# Amazon SNS topic on which to send account event notifications
ENV SNS_TOPIC_ARN=disabled
ENV STATSD_ENABLE=false
ENV STATSD_HOST=localhost
ENV STATSD_PORT=8125
ENV STATSD_SAMPLE_RATE=1
ENV CORS_ORIGIN=*
# root urls of allowed OpenID providers
ENV OPENID_PROVIDERS=
EXPOSE 9000
# EXPOSE 9001
EXPOSE 7000
VOLUME [ "/app/config" ]
COPY bin /app/bin
COPY config /app/config
COPY lib /app/lib
COPY scripts /app/scripts
ADD AUTHORS /app/AUTHORS
ADD CHANGELOG.md /app/CHANGELOG.md
ADD LICENSE /app/LICENSE
ADD README.md /app/README.md
ADD package.json /app/package.json
WORKDIR /app
RUN npm i --production
# Skip mount through volume
# RUN node ./scripts/gen_keys.js
RUN apk del build-dependencies && \
rm -rf /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp
ENTRYPOINT exec node ./bin/key_server.js | node ./bin/notifier.js >/dev/null