17 строки
391 B
Docker
17 строки
391 B
Docker
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
|