feat: Dockerfile and compose.yaml
This commit is contained in:
parent
36784c7af2
commit
40cfd1fdf7
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/react
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=react
|
||||
|
||||
### react ###
|
||||
.DS_*
|
||||
*.log
|
||||
logs
|
||||
**/*.backup.*
|
||||
**/*.back.*
|
||||
|
||||
node_modules
|
||||
bower_components
|
||||
|
||||
*.sublime*
|
||||
|
||||
psd
|
||||
thumb
|
||||
sketch
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/react
|
11
Dockerfile
11
Dockerfile
@ -1,12 +1,9 @@
|
||||
FROM docker.io/oven/bun:1.1-slim AS build
|
||||
WORKDIR /app
|
||||
WORKDIR /app/
|
||||
COPY package.json bun.lockb .
|
||||
RUN bun install
|
||||
COPY . .
|
||||
COPY src/ src/
|
||||
COPY index.html vite.config.js .
|
||||
RUN bun run build
|
||||
|
||||
|
||||
EXPOSE 5173
|
||||
CMD ["bun", "start", "host", "0"]
|
||||
|
||||
##-p pour acceder au port
|
||||
CMD ["start", "--host", "0"]
|
||||
|
@ -1,7 +1,9 @@
|
||||
---
|
||||
services:
|
||||
web:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:5173"
|
||||
|
||||
redis:
|
||||
image: "valkey/valkey:7"
|
||||
|
5159
package-lock.json
generated
5159
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -12,23 +12,23 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/react": "^2.8.2",
|
||||
"@emotion/react": "^11.13.0",
|
||||
"@emotion/react": "^11.13.3",
|
||||
"@emotion/styled": "^11.13.0",
|
||||
"axios": "^1.7.5",
|
||||
"framer-motion": "^11.3.21",
|
||||
"mysql2": "^3.11.0",
|
||||
"axios": "^1.7.7",
|
||||
"framer-motion": "^11.5.4",
|
||||
"mysql2": "^3.11.1",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-router-dom": "^6.26.0"
|
||||
"react-router-dom": "^6.26.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react": "^18.3.5",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@vitejs/plugin-react": "^4.3.1",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-react": "^7.34.3",
|
||||
"eslint-plugin-react": "^7.35.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"eslint-plugin-react-refresh": "^0.4.7",
|
||||
"vite": "^5.3.4"
|
||||
"eslint-plugin-react-refresh": "^0.4.11",
|
||||
"vite": "^5.4.3"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user