Skip to content

Commit

Permalink
no longer running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisio-nicolas committed Feb 7, 2024
1 parent 318f2ba commit f7b88ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
bucket
volumes
*.lock
*.lock
chart
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM osgeo/gdal:alpine-small-3.2.1
LABEL maintainer "[email protected]"


COPY . /opt/bdortho/

WORKDIR /opt/bdortho

RUN apk add -u p7zip nodejs npm rclone curl findutils && npm install

RUN apk add -u p7zip nodejs npm rclone curl findutils && npm install && chown -R 1000:1000 /opt/bdortho

ENTRYPOINT ["node","/opt/bdortho/src/entrypoint.js"]

2 changes: 1 addition & 1 deletion src/master_updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const DEP_TO_EXCLUDE = env.DEP_TO_EXCLUDE || ''
fs.mkdirSync(opts.tmpDir, { recursive: true })


// Step 1: We if the workers have finished their tasks (if their volume is empty or their "todo" dir is empty or their "workdir" dir is empty)
// Step 1: We if the workers have finished their tasks (if their volume is empty )
const workers = fs.readdirSync(opts.volumes)
workers.forEach(worker =>{
if (fs.readdirSync(path.join(opts.volumes, worker)).length > 0){
Expand Down

0 comments on commit f7b88ce

Please sign in to comment.