Merge pull request #377 from michielbdejong/docker
feat(docker): Additional Dockerfile for self-hosting r=vladikoff
This commit is contained in:
Коммит
0fcb1438da
|
@ -0,0 +1 @@
|
|||
.git
|
|
@ -0,0 +1,17 @@
|
|||
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-oauth-server
|
||||
WORKDIR /home/fxa/fxa-oauth-server
|
||||
RUN chown -R fxa .
|
||||
USER fxa
|
||||
|
||||
RUN npm install --production \
|
||||
&& npm cache clear
|
||||
ENV NODE_ENV prod
|
||||
CMD ./node_modules/.bin/grunt server --node-env=prod
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 9010
|
||||
EXPOSE 9011
|
Загрузка…
Ссылка в новой задаче