mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
fix: copy megalodon before node_modules, fix #10424
This commit is contained in:
parent
71e97fce01
commit
c9983dc08a
@ -51,13 +51,14 @@ RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip nodejs-curre
|
|||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
|
COPY --from=build /calckey/packages/megalodon /calckey/packages/megalodon
|
||||||
|
|
||||||
# Copy node modules
|
# Copy node modules
|
||||||
COPY --from=build /calckey/node_modules /calckey/node_modules
|
COPY --from=build /calckey/node_modules /calckey/node_modules
|
||||||
COPY --from=build /calckey/packages/backend/node_modules /calckey/packages/backend/node_modules
|
COPY --from=build /calckey/packages/backend/node_modules /calckey/packages/backend/node_modules
|
||||||
COPY --from=build /calckey/packages/sw/node_modules /calckey/packages/sw/node_modules
|
COPY --from=build /calckey/packages/sw/node_modules /calckey/packages/sw/node_modules
|
||||||
COPY --from=build /calckey/packages/client/node_modules /calckey/packages/client/node_modules
|
COPY --from=build /calckey/packages/client/node_modules /calckey/packages/client/node_modules
|
||||||
COPY --from=build /calckey/packages/calckey-js/node_modules /calckey/packages/calckey-js/node_modules
|
COPY --from=build /calckey/packages/calckey-js/node_modules /calckey/packages/calckey-js/node_modules
|
||||||
COPY --from=build /calckey/packages/megalodon/node_modules /calckey/packages/megalodon/node_modules
|
|
||||||
|
|
||||||
# Copy the finished compiled files
|
# Copy the finished compiled files
|
||||||
COPY --from=build /calckey/built /calckey/built
|
COPY --from=build /calckey/built /calckey/built
|
||||||
|
@ -46,6 +46,14 @@ const { join } = require("node:path");
|
|||||||
recursive: true,
|
recursive: true,
|
||||||
force: true,
|
force: true,
|
||||||
});
|
});
|
||||||
|
fs.rmSync(join(__dirname, "/../packages/megalodon/built"), {
|
||||||
|
recursive: true,
|
||||||
|
force: true,
|
||||||
|
});
|
||||||
|
fs.rmSync(join(__dirname, "/../packages/megalodon/node_modules"), {
|
||||||
|
recursive: true,
|
||||||
|
force: true,
|
||||||
|
});
|
||||||
|
|
||||||
fs.rmSync(join(__dirname, "/../built"), { recursive: true, force: true });
|
fs.rmSync(join(__dirname, "/../built"), { recursive: true, force: true });
|
||||||
fs.rmSync(join(__dirname, "/../node_modules"), {
|
fs.rmSync(join(__dirname, "/../node_modules"), {
|
||||||
|
Loading…
Reference in New Issue
Block a user