mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
refactor: improve docker image build with strict dependencies and pro… (#2689)
* refactor: improve docker image build with strict dependencies and prod build * use master as registry * format
This commit is contained in:
parent
418bf0d8fa
commit
24b9be0202
12 changed files with 31 additions and 33 deletions
11
.babelrc
11
.babelrc
|
@ -2,10 +2,6 @@
|
|||
"presets": [ [
|
||||
"@babel/env",
|
||||
{
|
||||
"useBuiltIns": "usage",
|
||||
"corejs": {
|
||||
"version": 3, "proposals": true
|
||||
},
|
||||
"targets": {
|
||||
"node": 14
|
||||
}
|
||||
|
@ -13,13 +9,6 @@
|
|||
],
|
||||
"@babel/typescript"
|
||||
],
|
||||
"plugins": [
|
||||
"babel-plugin-dynamic-import-node",
|
||||
"@babel/proposal-class-properties",
|
||||
"@babel/proposal-object-rest-spread",
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator"
|
||||
],
|
||||
"ignore": [
|
||||
"**/*.d.ts"
|
||||
]
|
||||
|
|
11
.changeset/eleven-brooms-hunt.md
Normal file
11
.changeset/eleven-brooms-hunt.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
'@verdaccio/api': minor
|
||||
'@verdaccio/core': minor
|
||||
'@verdaccio/tarball': minor
|
||||
'@verdaccio/middleware': minor
|
||||
'verdaccio-audit': minor
|
||||
'@verdaccio/utils': minor
|
||||
'@verdaccio/web': minor
|
||||
---
|
||||
|
||||
refactor: improve docker image build with strict dependencies and prod build
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
|||
name: setup verdaccio
|
||||
services:
|
||||
verdaccio:
|
||||
image: verdaccio/verdaccio:5
|
||||
image: verdaccio/verdaccio:nightly-master
|
||||
ports:
|
||||
- 4873:4873
|
||||
steps:
|
||||
|
|
|
@ -11,11 +11,12 @@ RUN apk --no-cache add openssl ca-certificates wget && \
|
|||
|
||||
WORKDIR /opt/verdaccio-build
|
||||
COPY . .
|
||||
|
||||
RUN npm -g i pnpm@6.10.3 && \
|
||||
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
|
||||
pnpm recursive install --frozen-lockfile --ignore-scripts && \
|
||||
pnpm run build
|
||||
rm -Rf test && \
|
||||
pnpm run build && \
|
||||
pnpm install -P
|
||||
# FIXME: need to remove devDependencies from the build
|
||||
# RUN pnpm install --prod --ignore-scripts
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
"abortcontroller-polyfill": "1.7.3",
|
||||
"cookies": "0.8.0",
|
||||
"debug": "4.3.2",
|
||||
"body-parser": "1.19.0",
|
||||
"express": "4.17.1",
|
||||
"lodash": "4.17.21",
|
||||
"mime": "2.6.0",
|
||||
|
@ -61,8 +62,6 @@
|
|||
"@verdaccio/server": "workspace:6.0.0-6-next.23",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.9",
|
||||
"@verdaccio/helper": "1.0.0",
|
||||
"body-parser": "1.19.0",
|
||||
"lodash": "4.17.21",
|
||||
"supertest": "6.1.6"
|
||||
},
|
||||
"funding": {
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
"http-errors": "1.8.0",
|
||||
"http-status-codes": "2.1.4",
|
||||
"semver": "7.3.5",
|
||||
"fastify-warning": "0.2.0"
|
||||
"fastify-warning": "0.2.0",
|
||||
"core-js": "3.17.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.9"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.2",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.3",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.7",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.9",
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.2",
|
||||
"body-parser": "1.19.0",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.15",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.3",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.7",
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"express": "4.17.1",
|
||||
"body-parser": "1.19.0",
|
||||
"https-proxy-agent": "5.0.0",
|
||||
"node-fetch": "3.0.0-beta.6-exportfix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.9",
|
||||
"body-parser": "1.19.0",
|
||||
"nock": "12.0.3",
|
||||
"supertest": "6.1.6"
|
||||
},
|
||||
|
|
|
@ -32,9 +32,7 @@
|
|||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.3",
|
||||
"minimatch": "3.0.4",
|
||||
"semver": "7.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"semver": "7.3.5",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
"@verdaccio/tarball": "workspace:11.0.0-6-next.10",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.7",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.9",
|
||||
"body-parse": "0.1.0",
|
||||
"body-parser": "1.19.0",
|
||||
"debug": "4.3.2",
|
||||
"express": "4.17.1",
|
||||
|
@ -46,7 +45,6 @@
|
|||
"devDependencies": {
|
||||
"@types/node": "16.11.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.9",
|
||||
"body-parser": "1.19.0",
|
||||
"node-html-parser": "4.1.5",
|
||||
"supertest": "6.1.6",
|
||||
"verdaccio-auth-memory": "workspace:11.0.0-6-next.6",
|
||||
|
|
|
@ -219,6 +219,7 @@ importers:
|
|||
'@verdaccio/tarball': link:../core/tarball
|
||||
'@verdaccio/utils': link:../utils
|
||||
abortcontroller-polyfill: 1.7.3
|
||||
body-parser: 1.19.0
|
||||
cookies: 0.8.0
|
||||
debug: 4.3.2
|
||||
express: 4.17.1
|
||||
|
@ -230,7 +231,6 @@ importers:
|
|||
'@verdaccio/helper': link:../tools/helpers
|
||||
'@verdaccio/server': link:../server
|
||||
'@verdaccio/types': link:../core/types
|
||||
body-parser: 1.19.0
|
||||
supertest: 6.1.6
|
||||
|
||||
packages/auth:
|
||||
|
@ -313,11 +313,13 @@ importers:
|
|||
packages/core/core:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.9
|
||||
core-js: 3.17.2
|
||||
fastify-warning: 0.2.0
|
||||
http-errors: 1.8.0
|
||||
http-status-codes: 2.1.4
|
||||
semver: 7.3.5
|
||||
dependencies:
|
||||
core-js: 3.17.2
|
||||
fastify-warning: 0.2.0
|
||||
http-errors: 1.8.0
|
||||
http-status-codes: 2.1.4
|
||||
|
@ -400,12 +402,14 @@ importers:
|
|||
'@verdaccio/types': workspace:11.0.0-6-next.9
|
||||
'@verdaccio/url': workspace:11.0.0-6-next.7
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.9
|
||||
debug: 4.3.2
|
||||
lodash: 4.17.21
|
||||
node-mocks-http: 1.10.1
|
||||
dependencies:
|
||||
'@verdaccio/core': link:../core
|
||||
'@verdaccio/url': link:../url
|
||||
'@verdaccio/utils': link:../../utils
|
||||
debug: 4.3.2
|
||||
lodash: 4.17.21
|
||||
devDependencies:
|
||||
'@verdaccio/types': link:../types
|
||||
|
@ -526,6 +530,7 @@ importers:
|
|||
'@verdaccio/core': workspace:6.0.0-6-next.3
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.9
|
||||
body-parser: 1.19.0
|
||||
debug: 4.3.2
|
||||
lodash: 4.17.21
|
||||
dependencies:
|
||||
|
@ -533,6 +538,7 @@ importers:
|
|||
'@verdaccio/core': link:../core/core
|
||||
'@verdaccio/logger': link:../logger
|
||||
'@verdaccio/utils': link:../utils
|
||||
body-parser: 1.19.0
|
||||
debug: 4.3.2
|
||||
lodash: 4.17.21
|
||||
|
||||
|
@ -590,12 +596,12 @@ importers:
|
|||
node-fetch: 3.0.0-beta.6-exportfix
|
||||
supertest: 6.1.6
|
||||
dependencies:
|
||||
body-parser: 1.19.0
|
||||
express: 4.17.1
|
||||
https-proxy-agent: 5.0.0
|
||||
node-fetch: 3.0.0-beta.6-exportfix
|
||||
devDependencies:
|
||||
'@verdaccio/types': link:../../core/types
|
||||
body-parser: 1.19.0
|
||||
nock: 12.0.3
|
||||
supertest: 6.1.6
|
||||
|
||||
|
@ -1141,10 +1147,9 @@ importers:
|
|||
semver: 7.3.5
|
||||
dependencies:
|
||||
'@verdaccio/core': link:../core/core
|
||||
lodash: 4.17.21
|
||||
minimatch: 3.0.4
|
||||
semver: 7.3.5
|
||||
devDependencies:
|
||||
lodash: 4.17.21
|
||||
|
||||
packages/verdaccio:
|
||||
specifiers:
|
||||
|
@ -1194,7 +1199,6 @@ importers:
|
|||
'@verdaccio/types': workspace:11.0.0-6-next.9
|
||||
'@verdaccio/url': workspace:11.0.0-6-next.7
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.9
|
||||
body-parse: 0.1.0
|
||||
body-parser: 1.19.0
|
||||
debug: 4.3.2
|
||||
express: 4.17.1
|
||||
|
@ -1216,7 +1220,6 @@ importers:
|
|||
'@verdaccio/tarball': link:../core/tarball
|
||||
'@verdaccio/url': link:../core/url
|
||||
'@verdaccio/utils': link:../utils
|
||||
body-parse: 0.1.0
|
||||
body-parser: 1.19.0
|
||||
debug: 4.3.2
|
||||
express: 4.17.1
|
||||
|
@ -9767,10 +9770,6 @@ packages:
|
|||
/bluebird/3.7.2:
|
||||
resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==}
|
||||
|
||||
/body-parse/0.1.0:
|
||||
resolution: {integrity: sha512-k0PDF7vZZpspXlwoM8ywh9PIHZokooS0Rek4M8Vekoro7XuuaWVhjgTpdzIRrfKj5oLQahwjn621/4kG4d91xw==}
|
||||
dev: false
|
||||
|
||||
/body-parser/1.19.0:
|
||||
resolution: {integrity: sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
|
Loading…
Reference in a new issue