2020-05-26 20:03:42 +02:00
|
|
|
FROM node:12-alpine
|
|
|
|
|
|
|
|
RUN apk update && apk add git
|
2020-04-12 20:20:50 +02:00
|
|
|
|
|
|
|
ADD . app
|
|
|
|
|
|
|
|
WORKDIR app
|
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
|
|
|
|
# due to the git submodule npm install crashes with following error:
|
|
|
|
# npm ERR! fatal: Not a git repository: ../.git/modules/bbb-webrtc-sfu
|
|
|
|
# we simply delete the .git file
|
|
|
|
RUN cp config/default.example.yml config/production.yml \
|
|
|
|
&& rm .git \
|
|
|
|
&& npm install --unsafe-perm \
|
|
|
|
&& npm cache clear --force
|
|
|
|
|
|
|
|
EXPOSE 3008
|
|
|
|
|
|
|
|
ENTRYPOINT [ "./docker-entrypoint.sh" ]
|
|
|
|
CMD [ "npm", "start" ]
|