Update Dockerfile
Browse files- 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
|
|
|
44 |
|
45 |
WORKDIR /app/.data
|
46 |
|
47 |
-
RUN
|
48 |
-
git config user.
|
|
|
|
|
|
|
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 |
|