-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move the geo convert to memphis functions (#602)
Co-authored-by: orig <[email protected]>
- Loading branch information
Showing
8 changed files
with
34 additions
and
155 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,8 +1,6 @@ | ||
node_modules | ||
dist | ||
npm-debug.log | ||
CONTRIBUTE.MD | ||
README.md | ||
.gitignore | ||
LICENSE | ||
*.md | ||
.git | ||
.DS_Store |
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,6 @@ | ||
node_modules | ||
dist | ||
npm-debug.log | ||
CONTRIBUTE.MD | ||
README.md | ||
.gitignore | ||
LICENSE | ||
*.md | ||
.git | ||
.DS_Store | ||
server |
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,8 +1,6 @@ | ||
node_modules | ||
dist | ||
npm-debug.log | ||
CONTRIBUTE.MD | ||
README.md | ||
.gitignore | ||
LICENSE | ||
*.md | ||
.git | ||
.DS_Store |
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,47 +1,29 @@ | ||
# -------------------------------------------- | ||
# Dependencies Stage | ||
# -------------------------------------------- | ||
FROM node:19.2-alpine3.15 as dependencies | ||
FROM node:lts-alpine as dependencies | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN apk add --update python3 make g++\ | ||
&& rm -rf /var/cache/apk/* | ||
# Install Python for node-gyp | ||
RUN apk add --no-cache python3 make g++ | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
# -------------------------------------------- | ||
# Build Stage | ||
# -------------------------------------------- | ||
# Intermediate docker image to build the bundle in and install dependencies | ||
FROM node:19.2-alpine3.15 as build | ||
FROM node:lts-alpine as build | ||
WORKDIR /app | ||
|
||
COPY . . | ||
COPY --from=dependencies /app/node_modules ./node_modules | ||
|
||
# Run prisma generate & build the bundle in production mode | ||
RUN npx nx build tracker --prod --skip-nx-cache | ||
RUN npx nx build tracker --prod --skip-nx-cache \ | ||
&& npm prune --production | ||
|
||
# -------------------------------------------- | ||
# Production Stage | ||
# -------------------------------------------- | ||
FROM node:19.2-alpine3.15 as production | ||
FROM node:lts-alpine as production | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/dist/apps/tracker ./tracker | ||
COPY --from=build /app/node_modules ./node_modules | ||
COPY --from=build /app/libs/ ./libs | ||
|
||
EXPOSE 3001 | ||
|
||
# Start the application | ||
CMD sh -c "node tracker/main.js" | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
CMD ["node", "tracker/main.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
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