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
|
FROM docker.io/oven/bun:1.1-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app/
|
||||||
COPY package.json bun.lockb .
|
COPY package.json bun.lockb .
|
||||||
RUN bun install
|
RUN bun install
|
||||||
COPY . .
|
COPY src/ src/
|
||||||
|
COPY index.html vite.config.js .
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 5173
|
EXPOSE 5173
|
||||||
CMD ["bun", "start", "host", "0"]
|
CMD ["start", "--host", "0"]
|
||||||
|
|
||||||
##-p pour acceder au port
|
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
|
---
|
||||||
services:
|
services:
|
||||||
web:
|
app:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "8000:5173"
|
- "8000:5173"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: "valkey/valkey:7"
|
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": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.8.2",
|
"@chakra-ui/react": "^2.8.2",
|
||||||
"@emotion/react": "^11.13.0",
|
"@emotion/react": "^11.13.3",
|
||||||
"@emotion/styled": "^11.13.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
"axios": "^1.7.5",
|
"axios": "^1.7.7",
|
||||||
"framer-motion": "^11.3.21",
|
"framer-motion": "^11.5.4",
|
||||||
"mysql2": "^3.11.0",
|
"mysql2": "^3.11.1",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
"react-router-dom": "^6.26.0"
|
"react-router-dom": "^6.26.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.5",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@vitejs/plugin-react": "^4.3.1",
|
"@vitejs/plugin-react": "^4.3.1",
|
||||||
"eslint": "^8.57.0",
|
"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-hooks": "^4.6.2",
|
||||||
"eslint-plugin-react-refresh": "^0.4.7",
|
"eslint-plugin-react-refresh": "^0.4.11",
|
||||||
"vite": "^5.3.4"
|
"vite": "^5.4.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user