Skip to content

Commit

Permalink
ci: update file paths in build-and-release workflow and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Disane87 committed Oct 29, 2024
1 parent e69f6c4 commit c7efa4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- ".releaserc"
- "package.json"
- "README.md"
- "dockerfile"
branches:
- "main"
- "dev"
Expand Down
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /home/node/docudigger

# USER root

RUN mkdir -p data
RUN mkdir -p data
RUN mkdir -p logs

ENV AMAZON_USERNAME ${AMAZON_USERNAME}
Expand Down Expand Up @@ -38,5 +38,6 @@ ENV PATH $PATH:/home/node/.npm-global/bin
RUN npm install -g concurrently --ignore-scripts
RUN npm install -g @disane-dev/docudigger@${DOCUDIGGER_VERSION} --ignore-scripts
RUN npm install -g puppeteer
RUN npx puppeteer browsers install chrome

CMD ["concurrently","docudigger scrape all"]
CMD ["concurrently","docudigger scrape all"]
3 changes: 2 additions & 1 deletion dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ENV PATH $PATH:/home/node/.npm-global/bin

COPY ["./dist/","./bin/","package*.json", "package-lock*.json", "npm-shrinkwrap*.json", "./"]
RUN npm install --production --silent --ignore-scripts
RUN npm install -g puppeteer --production --silent
RUN npm install -g puppeteer --production --silent
RUN npx puppeteer browsers install chrome
# RUN mv node_modules ../
COPY . .
EXPOSE 9229
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"postinstall": "ts-node ./scripts/postinstall.ts",
"prestart": "npm run lint",
"start": "cd ./bin && dev scrape amazon",
"start:debug": "node --inspect=0.0.0.0:9229 ./bin/run scrape all",
"start:debug": "node --inspect=0.0.0.0:9229 ./bin/run scrape amazon",
"prebuild": "npm run clean && npm run lint",
"build": "tsc -b",
"lint": "eslint ./src --fix",
Expand Down

0 comments on commit c7efa4b

Please sign in to comment.