Browse Source

Fix building issues

master
David Ludwig 4 years ago
parent
commit
64f6a398c7
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      Dockerfile
  2. +1
    -1
      package.json

+ 2
- 0
Dockerfile View File

@ -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" ]

+ 1
- 1
package.json View File

@ -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",


Loading…
Cancel
Save