Skip to content

Commit 806aa9f

Browse files
committed
remove: LETS JUST SAVE THE 500MBs if we don't need the git folder.
1 parent e69c022 commit 806aa9f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ RUN corepack prepare [email protected] --activate
3939

4040
WORKDIR /usr/src/app
4141

42-
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
43-
COPY --from=builder /usr/src/app/sources /usr/src/app/sources
44-
COPY --from=builder /usr/src/app/package.json /usr/src/app/
45-
COPY --from=builder /usr/src/app/src /usr/src/app/src
42+
COPY --from=builder /usr/src/app/node_modules ./node_modules
43+
COPY --from=builder /usr/src/app/sources ./sources
44+
COPY --from=builder /usr/src/app/package.json ./
45+
COPY --from=builder /usr/src/app/src ./src
4646

4747
ENV _APP_ASSISTANT_OPENAI_API_KEY=''
4848

scripts/git-sources.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ await execa("git", ["config", "core.sparseCheckout", "true"], {
4040
});
4141

4242
await execa("git", ["checkout", GIT_BRANCH], { cwd: LOCAL_PATH });
43+
await execa("rm", ["-rf", `${LOCAL_PATH}/.git`]);

0 commit comments

Comments
 (0)