Commit 5af0924d by DenSakh

chore: added docker

parent f70aa9f6
version: '3'
services:
app:
build:
context: .
dockerfile: ./docker/DockerFile
volumes:
- ./src:/app/src
- ./package.json:/app/package.json
- ./yarn.lock:/app/yarn.lock
environment:
NODE_OPTIONS: "--openssl-legacy-provider"
command: "npm run start:both"
ports:
- "3000:3000"
\ No newline at end of file
FROM node:18.12.1-alpine
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY . .
RUN cd example && npm install
# CMD [ "npm", "run", "start:both" ]
\ No newline at end of file
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
} }
}, },
"..": { "..": {
"version": "1.0.17", "name": "react-ag-qeditor",
"version": "1.0.23",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@tiptap/core": "^2.0.0-beta.176", "@tiptap/core": "^2.0.0-beta.176",
...@@ -36,9 +37,15 @@ ...@@ -36,9 +37,15 @@
"@tiptap/extension-underline": "^2.0.0-beta.23", "@tiptap/extension-underline": "^2.0.0-beta.23",
"@tiptap/react": "^2.0.0-beta.109", "@tiptap/react": "^2.0.0-beta.109",
"@tiptap/starter-kit": "^2.0.0-beta.185", "@tiptap/starter-kit": "^2.0.0-beta.185",
"axios": "^0.27.2",
"katex": "^0.15.3", "katex": "^0.15.3",
"prosemirror-state": "1.4.0",
"rc-upload": "^4.3.3", "rc-upload": "^4.3.3",
"react": "^17.0.2", "react": "^17.0.2",
"react-device-detect": "^2.2.3",
"react-media-recorder": "^1.6.6",
"react-stopwatch": "^2.0.4",
"react-webcam": "^7.0.1",
"sass": "^1.49.9" "sass": "^1.49.9"
}, },
"devDependencies": { "devDependencies": {
...@@ -1336,6 +1343,7 @@ ...@@ -1336,6 +1343,7 @@
"@tiptap/extension-underline": "^2.0.0-beta.23", "@tiptap/extension-underline": "^2.0.0-beta.23",
"@tiptap/react": "^2.0.0-beta.109", "@tiptap/react": "^2.0.0-beta.109",
"@tiptap/starter-kit": "^2.0.0-beta.185", "@tiptap/starter-kit": "^2.0.0-beta.185",
"axios": "^0.27.2",
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"eslint": "^6.8.0", "eslint": "^6.8.0",
...@@ -1353,10 +1361,15 @@ ...@@ -1353,10 +1361,15 @@
"microbundle-crl": "^0.13.10", "microbundle-crl": "^0.13.10",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^2.0.4", "prettier": "^2.0.4",
"prosemirror-state": "1.4.0",
"rc-upload": "^4.3.3", "rc-upload": "^4.3.3",
"react": "^17.0.2", "react": "^17.0.2",
"react-device-detect": "^2.2.3",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-media-recorder": "^1.6.6",
"react-scripts": "^3.4.1", "react-scripts": "^3.4.1",
"react-stopwatch": "^2.0.4",
"react-webcam": "^7.0.1",
"sass": "^1.49.9" "sass": "^1.49.9"
}, },
"dependencies": { "dependencies": {
......
...@@ -24,13 +24,15 @@ ...@@ -24,13 +24,15 @@
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom", "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom",
"predeploy": "cd example && npm install && npm run build", "predeploy": "cd example && npm install && npm run build",
"deploy": "gh-pages -d example/build" "deploy": "gh-pages -d example/build",
"start:both": "concurrently \"npm start\" \"cd example && npm start\""
}, },
"peerDependencies": { "peerDependencies": {
"react": "^17.0.2" "react": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^10.0.3", "babel-eslint": "^10.0.3",
"concurrently": "^8.2.1",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-prettier": "^6.7.0", "eslint-config-prettier": "^6.7.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment