mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
test
This commit is contained in:
parent
992f2982bf
commit
f0ef440264
@ -5,24 +5,26 @@ ARG JOB_TOKEN
|
||||
RUN apt update && apt install -y --no-install-recommends curl git && echo $TARGETARCH
|
||||
COPY deemix-gui deemix-gui
|
||||
WORKDIR deemix-gui/
|
||||
COPY server.package.json server/package.json
|
||||
# Only install pkg
|
||||
RUN ls -al webui && \
|
||||
ls -al server && \
|
||||
yarn config set network-timeout 1000000 -g && yarn add pkg@latest
|
||||
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
|
||||
#yarn install && yarn set-version && ./node_modules/.bin/pkg -t arm64 --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/; \
|
||||
yarn dist-server && ls -al dist/; \
|
||||
fi;
|
||||
#RUN if [ "${TARGETARCH}" = "arm64" ]; then \
|
||||
# #yarn install && yarn set-version && ./node_modules/.bin/pkg -t arm64 --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/; \
|
||||
# yarn dist-server && ls -al dist/; \
|
||||
# fi;
|
||||
|
||||
RUN if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||
#yarn install && yarn set-version && ./node_modules/.bin/pkg -t x64 --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/; \
|
||||
yarn dist-server && ls -al dist/; \
|
||||
fi;
|
||||
#RUN if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||
# #yarn install && yarn set-version && ./node_modules/.bin/pkg -t x64 --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/; \
|
||||
# yarn dist-server && ls -al dist/; \
|
||||
# fi;
|
||||
|
||||
RUN if [ "${TARGETARCH}" = "arm" ]; then \
|
||||
#RUN if [ "${TARGETARCH}" = "arm" ]; then \
|
||||
#yarn install && yarn set-version && ./node_modules/.bin/pkg -t armv7 --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/; \
|
||||
yarn dist-server && ls -al dist/; \
|
||||
fi;
|
||||
# yarn dist-server && ls -al dist/; \
|
||||
# fi;
|
||||
|
||||
#RUN yarn install && yarn set-version && ./node_modules/.bin/pkg --out-dir dist ./server/package.json && yarn reset-version && ls -al dist/
|
||||
RUN chmod +x dist/deemix-server-linux && curl --header "JOB-TOKEN: ${JOB_TOKEN}" --upload-file dist/deemix-server-linux ${PACKAGE_REGISTRY_URL}/deemix-server-linux-$TARGETARCH
|
||||
RUN yarn dist-server && ls -al dist/;
|
||||
RUN curl --header "JOB-TOKEN: ${JOB_TOKEN}" --upload-file dist/deemix-server-linux ${PACKAGE_REGISTRY_URL}/deemix-server-linux-$TARGETARCH
|
||||
|
79
server.package.json
Normal file
79
server.package.json
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "@deemix-gui/deemix-server",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node dist/app.js",
|
||||
"build": "webpack --env production",
|
||||
|
||||
"prewatch": "yarn lint-build",
|
||||
"watch": "webpack --watch",
|
||||
|
||||
"lint": "eslint \"./{src, tests}/**\" --fix",
|
||||
"lint-build": "eslint \"./src/**\" --fix",
|
||||
"test": "jest",
|
||||
"test-watch": "jest --watch"
|
||||
},
|
||||
"bin": "./dist/app.js",
|
||||
"pkg": {
|
||||
"scripts": "./dist/**/*.js",
|
||||
"assets": [
|
||||
"../webui/public/**/*",
|
||||
"../package.json"
|
||||
],
|
||||
"targets": [
|
||||
"node16-linux-x64",
|
||||
"node16-linux-arm64",
|
||||
"node16-linux-armv7"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "14.14.37",
|
||||
"bufferutil": "4.0.3",
|
||||
"cookie-parser": "1.4.5",
|
||||
"@types/cookie-parser": "1.4.2",
|
||||
"debug": "2.6.9",
|
||||
"@types/debug": "4.1.5",
|
||||
"deemix": "^3.6.0",
|
||||
"deezer-js": "^1.3.0",
|
||||
"dotenv": "8.2.0",
|
||||
"express": "4.17.1",
|
||||
"@types/express": "4.17.11",
|
||||
"express-session": "^1.17.1",
|
||||
"@types/express-session": "^1.17.3",
|
||||
"memorystore": "1.6.6",
|
||||
"morgan": "1.10.0",
|
||||
"@types/morgan": "1.9.2",
|
||||
"ramda": "0.27.1",
|
||||
"@types/ramda": "0.27.40",
|
||||
"utf-8-validate": "5.0.5",
|
||||
"uuid": "8.3.2",
|
||||
"@types/uuid": "8.3.0",
|
||||
"ws": "7.4.5",
|
||||
"@types/ws": "7.4.1",
|
||||
"yargs": "17.0.1",
|
||||
"@types/yargs": "17.0.0",
|
||||
"nodemon": "2.0.7",
|
||||
"nodemon-webpack-plugin": "4.5.2",
|
||||
"ts-loader": "9.2.3",
|
||||
"webpack": "5.41.1",
|
||||
"webpack-cli": "4.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxtjs/eslint-config": "6.0.0",
|
||||
"@types/jest": "26.0.22",
|
||||
"@types/supertest": "2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "4.21.0",
|
||||
"@typescript-eslint/parser": "4.21.0",
|
||||
"eslint": "7.23.0",
|
||||
"eslint-config-prettier": "8.1.0",
|
||||
"eslint-plugin-prettier": "3.3.1",
|
||||
"jest": "26.6.3",
|
||||
"ts-jest": "26.5.4",
|
||||
"ts-node": "9.1.1",
|
||||
"ts-node-dev": "1.1.6",
|
||||
"typescript": "4.2.4",
|
||||
"prettier": "2.2.1",
|
||||
"supertest": "6.1.3"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user