eienmojiki commited on
Commit
939bdfb
·
verified ·
1 Parent(s): 1ccad96

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -41,9 +41,9 @@ COPY --from=builder /app/enclosed/packages/app-client/dist ./public
41
  COPY --from=builder /app/enclosed/packages/app-server/dist-node/index.cjs ./index.cjs
42
 
43
  RUN --mount=type=secret,id=DATA_REPO,mode=0444,required=true \
44
- git clone $(cat /run/secrets/DATA_REPO) ./.data
45
 
46
- WORKDIR /app/.data
47
 
48
  RUN --mount=type=secret,id=GIT_USERNAME,mode=0444,required=true \
49
  git config user.name $(cat /run/secrets/GIT_USERNAME)
@@ -53,8 +53,10 @@ RUN --mount=type=secret,id=GIT_EMAIL,mode=0444,required=true \
53
 
54
  WORKDIR /app
55
 
56
- RUN chown -R 1000 /app/.data
57
- RUN chmod 777 /app/.data
 
 
58
 
59
  USER 1000
60
 
 
41
  COPY --from=builder /app/enclosed/packages/app-server/dist-node/index.cjs ./index.cjs
42
 
43
  RUN --mount=type=secret,id=DATA_REPO,mode=0444,required=true \
44
+ git clone $(cat /run/secrets/DATA_REPO)
45
 
46
+ WORKDIR /app/notes
47
 
48
  RUN --mount=type=secret,id=GIT_USERNAME,mode=0444,required=true \
49
  git config user.name $(cat /run/secrets/GIT_USERNAME)
 
53
 
54
  WORKDIR /app
55
 
56
+ RUN chown -R 1000 /app/notes
57
+ RUN chmod -R 777 /app/notes
58
+
59
+ ENV STORAGE_DRIVER_FS_LITE_PATH="/app/notes/data"
60
 
61
  USER 1000
62