diff --git a/Dockerfile b/Dockerfile index de21e1322..a43d27e73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,15 @@ FROM node:6.3 +ENV NODE_ENV production +ENV API_URL http://api.quran.com:3000 +ENV SENTRY_KEY_CLIENT https://44c105328ae544ae9928f9eb74b40061@app.getsentry.com/80639 +ENV SENTRY_KEY_SERVER https://44c105328ae544ae9928f9eb74b40061:41ca814d33124e04ab450104c3938cb1@app.getsentry.com/80639 +# It's okay because it's only the APP ID +ENV FACEBOOK_APP_ID 1557596491207315 +ENV ONE_QURAN_URL https://one.quran.com +ENV PORT 8000 +ENV NODE_PATH "./src" + RUN apt-get -y update && apt-get -y install supervisor ssh rsync # logrotate @@ -20,16 +30,6 @@ RUN cp -a /tmp/node_modules /quran WORKDIR /quran ADD . /quran/ -ENV NODE_ENV production -ENV API_URL http://api.quran.com:3000 -ENV SENTRY_KEY_CLIENT https://44c105328ae544ae9928f9eb74b40061@app.getsentry.com/80639 -ENV SENTRY_KEY_SERVER https://44c105328ae544ae9928f9eb74b40061:41ca814d33124e04ab450104c3938cb1@app.getsentry.com/80639 -# It's okay because it's only the APP ID -ENV FACEBOOK_APP_ID 1557596491207315 -ENV ONE_QURAN_URL https://one.quran.com -ENV PORT 8000 -ENV NODE_PATH "./src" - RUN npm run build:client RUN npm run build:server