chore(docker): update Docker configurations and debug Flask setup

This commit is contained in:
santiagosayshey
2024-08-15 23:23:03 +09:30
committed by Sam Chau
parent 3391ff76b6
commit 397d9918f1
6 changed files with 2708 additions and 5322 deletions

View File

@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["flask", "run", "--host=0.0.0.0"]
CMD ["python", "app.py"]

View File

@@ -11,4 +11,4 @@ def create_app():
if __name__ == '__main__':
app = create_app()
app.run(debug=True)
app.run(debug=True, host='0.0.0.0')

View File

@@ -1,4 +1,5 @@
Flask==2.0.1
Flask-CORS==3.0.10
PyYAML==5.4.1
requests==2.26.0
requests==2.26.0
Werkzeug==2.0.1

View File

@@ -9,11 +9,11 @@ services:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:5000
- VITE_API_URL=http://backend:5000 # Use the service name
backend:
build: ./backend
ports:
- "5000:5000"
volumes:
- ./backend:/app
- ./backend:/app

File diff suppressed because it is too large Load Diff

View File

@@ -4,22 +4,23 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^0.21.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"axios": "^0.21.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.21",
"tailwindcss": "^3.3.1",
"vite": "^4.2.0"
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.21",
"tailwindcss": "^3.3.1",
"vite": "^4.2.0"
}
}
}