This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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://[email protected]/80639 | ||
ENV SENTRY_KEY_SERVER https://44c105328ae544ae9928f9eb74b40061:[email protected]/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://[email protected]/80639 | ||
ENV SENTRY_KEY_SERVER https://44c105328ae544ae9928f9eb74b40061:[email protected]/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 | ||
|
||
|