diff --git a/services/torrent-client/Dockerfile b/services/torrent-client/Dockerfile index 8b285d6..30015d5 100644 --- a/services/torrent-client/Dockerfile +++ b/services/torrent-client/Dockerfile @@ -20,6 +20,7 @@ FROM base AS builder COPY package.json yarn.lock tsconfig.json ./ RUN rm -rf node_modules && yarn install --frozen-lockfile COPY src src +COPY patches patches # An image to build the app FROM builder AS build @@ -28,6 +29,7 @@ RUN yarn run build # An image containing the built app and production dependencies FROM base AS prod COPY --from=build /app/build ./build +COPY patches patches COPY package.json yarn.lock ./ RUN rm -rf node_modules && yarn install --production --frozen-lockfile CMD [ "yarn", "run", "start" ] diff --git a/services/torrent-client/package.json b/services/torrent-client/package.json index 5104a2e..d935063 100644 --- a/services/torrent-client/package.json +++ b/services/torrent-client/package.json @@ -21,7 +21,6 @@ "@types/rimraf": "^3.0.0", "@types/websocket": "^1.0.2", "nodemon": "^2.0.7", - "patch-package": "^6.4.7", "postinstall-postinstall": "^2.1.0", "ts-node": "^9.1.1", "typescript": "^4.2.3" @@ -31,6 +30,7 @@ "mysql": "^2.18.1", "node-ipc": "^9.1.4", "parse-torrent": "^9.1.3", + "patch-package": "^6.4.7", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", "typeorm": "^0.2.32",