Skip to content

Commit

Permalink
build: add pnpm fetch step to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Aug 26, 2024
1 parent 1c9181d commit af4e2ae
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 55 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ dev.sh
# distribution
dist/

.DS_Store
webui/public/js/*
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ WORKDIR /app

FROM base AS builder

COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY server/package.json ./server/
COPY webui/package.json ./webui/
COPY deemix/package.json ./deemix/
COPY deezer-js/package.json ./deezer-js/
COPY pnpm-lock.yaml ./

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm fetch

COPY . .

RUN pnpm build
RUN pnpm install -r --offline && pnpm build

FROM base AS runner

Expand Down
72 changes: 36 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,10 @@
"testlang": "node ./tests/testlang.js"
},
"dependencies": {
"@rollup/plugin-alias": "3.1.5",
"@rollup/plugin-commonjs": "20.0.0",
"@rollup/plugin-node-resolve": "13.0.4",
"@rollup/plugin-replace": "3.0.0",
"@vue/composition-api": "1.0.6",
"esbuild": "0.12.19",
"flag-icon-css": "3.5.0",
"lodash-es": "4.17.21",
"npm-run-all": "4.1.5",
"postcss": "8.3.6",
"rimraf": "3.0.2",
"rollup": "2.56.1",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-postcss": "4.0.0",
"rollup-plugin-svg": "2.0.0",
"rollup-plugin-vue": "4.2.0",
"svg-country-flags": "1.2.10",
"tailwindcss": "1.9.6",
"toastify-js": "1.11.1",
Expand All @@ -45,16 +33,28 @@
"@babel/core": "7.15.0",
"@babel/plugin-transform-modules-commonjs": "7.15.0",
"@nuxtjs/eslint-config": "6.0.1",
"@rollup/plugin-alias": "3.1.5",
"@rollup/plugin-commonjs": "20.0.0",
"@rollup/plugin-node-resolve": "13.0.4",
"@rollup/plugin-replace": "3.0.0",
"@types/jest": "26.0.24",
"@typescript-eslint/eslint-plugin": "4.29.0",
"@typescript-eslint/parser": "4.29.0",
"autoprefixer": "^9.8.8",
"babel-jest": "27.0.6",
"esbuild": "0.12.19",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.0",
"jest": "27.0.6",
"npm-run-all": "4.1.5",
"prettier": "2.3.2",
"rimraf": "3.0.2",
"rollup": "2.56.1",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-postcss": "4.0.0",
"rollup-plugin-svg": "2.0.0",
"rollup-plugin-vue": "4.2.0",
"vue-template-compiler": "2.6.14"
}
}

0 comments on commit af4e2ae

Please sign in to comment.