This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM node:20-alpine AS frontend
|
||||
WORKDIR /app
|
||||
COPY package.json package.json
|
||||
COPY vite.config.ts tsconfig.json tailwind.config.js postcss.config.cjs index.html ./
|
||||
COPY frontend ./frontend
|
||||
RUN npm install && npm run build:frontend
|
||||
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
COPY backend ./backend
|
||||
COPY --from=frontend /app/frontend/dist ./frontend/dist
|
||||
RUN pip install --no-cache-dir -r backend/requirements.txt
|
||||
EXPOSE 6363
|
||||
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "6363"]
|
||||
Reference in New Issue
Block a user