Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve development process #87

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
npm-debug.log
build
.dockerignore
**/.git
**/.github
**/.DS_Store
**/node_modules
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM node:16-alpine as builder

RUN apk add --update bash
FROM node:18-slim

# Setting working directory.
WORKDIR /opt/meilisearch-ui
Expand All @@ -16,4 +14,4 @@ RUN pnpm install
EXPOSE 24900

# Running the app
CMD ["pnpm","run","start"]
CMD ["pnpm", "run", "start"]
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
},
"repository": "https://github.com/riccox/meilisearch-ui",
"homepage": "https://github.com/riccox/meilisearch-ui#readme",
"author": {
"email": "[email protected]",
"name": "Ricco Xie",
"url": "https://ricco.riccox.com"
},
"author": "Ricco Xie <[email protected]> (https://ricco.riccox.com)",
"dependencies": {
"@emotion/react": "^11.11.1",
"@hookform/resolvers": "^3.3.1",
Expand Down Expand Up @@ -58,7 +54,7 @@
"@types/qs": "^6.9.8",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"@vitejs/plugin-react-swc": "^3.4.0",
"autoprefixer": "^10.4.15",
"eslint": "8.47.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -69,5 +65,7 @@
"typescript": "5.1.6",
"vite": "^4.4.9"
},
"version": "0.6.4"
}
"version": "0.6.4",
"main": "index.js",
"license": "MIT"
}
Loading