-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
cc9e4b5
commit 5299d3b
Showing
3 changed files
with
15 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,9 +1,12 @@ | ||
FROM node:10.15 | ||
WORKDIR /identity-x | ||
ENV NODE_ENV production | ||
ADD ./ /id-me | ||
WORKDIR /id-me | ||
ARG SERVICE | ||
|
||
RUN yarn --production | ||
ADD package.json yarn.lock /identity-x/ | ||
ADD packages /identity-x/packages | ||
ADD services/$SERVICE /identity-x/services/$SERVICE | ||
RUN yarn --production --pure-lockfile | ||
|
||
WORKDIR /id-me/services/graphql | ||
WORKDIR /identity-x/services/$SERVICE | ||
ENTRYPOINT [ "node", "src/index.js" ] |
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,11 +1,13 @@ | ||
FROM danlynn/ember-cli:3.9.0 as ember | ||
WORKDIR /id-me | ||
COPY package.json yarn.lock /id-me/ | ||
COPY ./services/manage /id-me/services/manage/ | ||
WORKDIR /identity-x | ||
|
||
ADD package.json yarn.lock /identity-x/ | ||
ADD packages /identity-x/packages | ||
ADD services/manage /identity-x/services/manage | ||
RUN yarn | ||
WORKDIR /id-me/services/manage | ||
WORKDIR /identity-x/services/manage | ||
RUN ember build --env=production | ||
|
||
FROM nginx:alpine | ||
COPY --from=ember /id-me/services/manage/dist /id-me/services/manage/dist | ||
COPY --from=ember /identity-x/services/manage/dist /identity-x/services/manage/dist | ||
COPY ./services/manage/nginx.conf /etc/nginx/conf.d/manage.conf |
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