Spaces:
Sleeping
Sleeping
Upload 10 files
Browse files- Dockerfile +0 -15
Dockerfile
CHANGED
|
@@ -1,23 +1,8 @@
|
|
| 1 |
-
# ---------- FRONTEND ----------
|
| 2 |
-
FROM node:20-alpine AS frontend
|
| 3 |
-
|
| 4 |
-
WORKDIR /app/frontend
|
| 5 |
-
|
| 6 |
-
COPY frontend/package*.json ./
|
| 7 |
-
RUN npm install
|
| 8 |
-
|
| 9 |
-
RUN npx shadcn-ui@latest init -y
|
| 10 |
-
RUN npm install -D tailwindcss postcss autoprefixer
|
| 11 |
-
COPY frontend/ ./
|
| 12 |
-
RUN npm run build
|
| 13 |
-
|
| 14 |
-
|
| 15 |
# ---------- BACKEND ----------
|
| 16 |
FROM python:3.11-slim
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|
| 20 |
-
COPY requirements.txt .
|
| 21 |
RUN pip install --no-cache-dir fastapi uvicorn pydantic aiohttp
|
| 22 |
|
| 23 |
COPY api ./api
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# ---------- BACKEND ----------
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
|
|
|
| 6 |
RUN pip install --no-cache-dir fastapi uvicorn pydantic aiohttp
|
| 7 |
|
| 8 |
COPY api ./api
|