Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary-bob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AI
binary-bob
Commits
84d9d801
Commit
84d9d801
authored
11 months ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
cron
parent
7332a0f3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+6
-2
6 additions, 2 deletions
Dockerfile
cron
+1
-0
1 addition, 0 deletions
cron
with
7 additions
and
2 deletions
Dockerfile
+
6
−
2
View file @
84d9d801
...
@@ -5,7 +5,9 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
...
@@ -5,7 +5,9 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
# Install Google Chrome Stable and fonts
# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN
apt-get update
&&
apt-get
install
curl gnupg
-y
\
RUN
apt-get update
\
&&
apt-get
install
curl gnupg
-y
\
&&
apt-get
install
cron
-y
--no-install-recommends
\
&&
curl
--location
--silent
https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
\
&&
curl
--location
--silent
https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
\
&&
sh
-c
'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
\
&&
sh
-c
'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
\
&&
apt-get update
\
&&
apt-get update
\
...
@@ -14,7 +16,9 @@ RUN apt-get update && apt-get install curl gnupg -y \
...
@@ -14,7 +16,9 @@ RUN apt-get update && apt-get install curl gnupg -y \
WORKDIR
/app
WORKDIR
/app
COPY
. /app/
COPY
. /app/
COPY
cron /etc/cron.d/tasks_cronjob
RUN
npm
install
RUN
npm
install
RUN
npm run build
RUN
npm run build
CMD
["npm", "start"]
# CMD ["npm", "start"]
\ No newline at end of file
CMD
["/bin/bash", "-c", "chmod 644 /etc/cron.d/tasks_cronjob && cron && cd /app && npm start"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
cron
0 → 100644
+
1
−
0
View file @
84d9d801
0 4 * * 0 cd /app && npm run ingest
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment