-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference pull request for full details.
- Loading branch information
1 parent
e484b35
commit 6185afa
Showing
45 changed files
with
509 additions
and
428 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.git | ||
.gitignore | ||
.svn | ||
.DS_Store | ||
.vscode | ||
*.log | ||
*.tmp | ||
*.swp | ||
**/README.md | ||
**/node_modules | ||
client/dist | ||
client/.angular | ||
client/.nx |
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
ARG BASE_IMAGE="node:lts" | ||
FROM ${BASE_IMAGE} as build | ||
ARG COMMIT_BRANCH="unspecified" | ||
ARG COMMIT_SHA="unspecified" | ||
ARG COMMIT_TAG="unspecified" | ||
ARG COMMIT_DESCRIBE="unspecified" | ||
LABEL commit-branch=${COMMIT_BRANCH} | ||
LABEL commit-sha=${COMMIT_SHA} | ||
LABEL commit-tag=${COMMIT_TAG} | ||
LABEL commit-describe=${COMMIT_DESCRIBE} | ||
|
||
WORKDIR /app/client | ||
|
||
COPY client/package*.json ./ | ||
|
||
RUN npm install --force | ||
|
||
COPY client/. . | ||
|
||
RUN npm run build | ||
|
||
FROM node:lts | ||
|
||
WORKDIR /app/api | ||
|
||
COPY api/package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY api/. . | ||
|
||
COPY --from=build /app/client/dist ../client/dist | ||
|
||
ENV COMMIT_SHA=${COMMIT_SHA} \ | ||
COMMIT_BRANCH=${COMMIT_BRANCH} \ | ||
COMMIT_TAG=${COMMIT_TAG} \ | ||
COMMIT_DESCRIBE=${COMMIT_DESCRIBE} | ||
|
||
EXPOSE 8086 | ||
|
||
CMD ["node", "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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.