eienmojiki commited on
Commit
d462cda
·
verified ·
1 Parent(s): ad8a6a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -40,12 +40,16 @@ RUN npm install -g pm2 && \
40
  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 git clone https://kogakisaki:[email protected]/kogakisaki/enclosed-db ./.data
 
44
 
45
  WORKDIR /app/.data
46
 
47
- RUN git config user.name "kogakisaki" && \
48
- git config user.email "[email protected]"
 
 
 
49
 
50
  WORKDIR /app
51
 
 
40
  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 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 RUN --mount=type=secret,id=GIT_USERNAME,mode=0444,required=true \
49
+ git config user.name $(cat /run/secrets/GIT_USERNAME)
50
+
51
+ RUN RUN --mount=type=secret,id=GIT_EMAIL,mode=0444,required=true \
52
+ git config user.email $(cat /run/secrets/GIT_EMAIL)
53
 
54
  WORKDIR /app
55