Merge pull request #1157 from michielbdejong/docker
feat(docker): Add Dockerfile for self-hosting r=vladikoff
This commit is contained in:
Коммит
5feb627998
|
@ -0,0 +1 @@
|
||||||
|
.git
|
|
@ -0,0 +1,16 @@
|
||||||
|
FROM vladikoff/fxa-slim-image:1.0.0
|
||||||
|
|
||||||
|
RUN adduser --disabled-password --gecos '' fxa && adduser fxa sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
COPY . /home/fxa/fxa-auth-server
|
||||||
|
WORKDIR /home/fxa/fxa-auth-server
|
||||||
|
RUN chown -R fxa .
|
||||||
|
USER fxa
|
||||||
|
|
||||||
|
RUN npm install --production \
|
||||||
|
&& npm cache clear
|
||||||
|
|
||||||
|
CMD node ./bin/key_server.js | node ./bin/notifier.js
|
||||||
|
|
||||||
|
# Expose ports
|
||||||
|
EXPOSE 9000
|
Загрузка…
Ссылка в новой задаче