Skip to content

Commit

Permalink
add serch suggestion for past ebay orders
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlice committed Mar 11, 2023
1 parent 15dd20d commit 938ddae
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 143 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts as runner
FROM node:lts-alpine as builder
WORKDIR /search
ENV NODE_ENV production
ARG COMMIT_ID
Expand All @@ -9,5 +9,12 @@ COPY . .
RUN npm ci
RUN npm i -g typescript
RUN npm run build:ts
COPY ./src/suggestions/icons /search/dist/suggestions/icons
FROM node:lts-alpine
WORKDIR /search
COPY --from=builder /search/dist /search/dist
COPY --from=builder /search/package.json /search/package.json
COPY --from=builder /search/src/GeoLite2-City.mmdb /search/src/GeoLite2-City.mmdb
RUN npm install --omit=dev
EXPOSE 8080
CMD ["npm", "run", "production"]
CMD ["npm", "run", "production"]
84 changes: 65 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"predeploy": "npm run build:ts",
"production": "cross-env NODE_ENV=production fastify start -l info dist/app.js -p 8080",
"build:ts": "tsc",
"dev": "tsc && concurrently -k -p \"[{name}]\" -n \"search.emu.sh\" -c \"yellow.bold,cyan.bold\" \"tsc -w\" \"fastify start --ignore-watch=.ts$ -p 8080 -w -l info -P dist/app.js\""
"dev": "tsc && concurrently -k -p \"[{name}]\" -n \"search.emu.sh\" -c \"yellow.bold,cyan.bold\" \"tsc -w\" \"fastify start --ignore-watch=.ts$ -p 3006 -w -l info -P dist/app.js\""
},
"keywords": [],
"author": "",
Expand Down Expand Up @@ -46,6 +46,7 @@
"maxmind": "^4.3.2",
"node-cache": "^5.1.2",
"node-dig-dns": "^0.3.0",
"openai": "^3.1.0",
"ping": "^0.4.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 938ddae

Please sign in to comment.