manu-sapiens commited on
Commit
d4b5c99
·
1 Parent(s): c544d15

added chmod and chown to /omnitool dir

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. myNodeServer.js +1 -1
Dockerfile CHANGED
@@ -4,6 +4,7 @@ USER node
4
  WORKDIR /app
5
 
6
  RUN chmod 777 /app
 
7
 
8
  RUN mkdir -p /app/omnitool/node_modules
9
  RUN chmod 777 /app/omnitool/node_modules
@@ -13,6 +14,7 @@ RUN curl -L https://github.com/omnitool-ai/omnitool/raw/main/packages/omni-serve
13
  RUN chmod 777 /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
14
 
15
  RUN chown -Rh $user:$user /app
 
16
 
17
  COPY --chown=node . /app
18
 
 
4
  WORKDIR /app
5
 
6
  RUN chmod 777 /app
7
+ RUN chmod 777 /app/omnitool
8
 
9
  RUN mkdir -p /app/omnitool/node_modules
10
  RUN chmod 777 /app/omnitool/node_modules
 
14
  RUN chmod 777 /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
15
 
16
  RUN chown -Rh $user:$user /app
17
+ RUN chown -Rh $user:$user /app/omnitool
18
 
19
  COPY --chown=node . /app
20
 
myNodeServer.js CHANGED
@@ -3,7 +3,7 @@
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
- const VERSION = '0.6.0.hf.004';
7
 
8
  const express = require('express');
9
  const http = require('http');
 
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
+ const VERSION = '0.6.0.hf.005';
7
 
8
  const express = require('express');
9
  const http = require('http');