first commit

This commit is contained in:
2026-07-19 13:25:13 +03:00
parent 0a81898f29
commit d7ecbfa818
17 changed files with 2999 additions and 0 deletions
+10
View File
@@ -1,3 +1,11 @@
#Create react build
FROM node:20-alpine AS builder
WORKDIR /app
COPY react-app/package*.json ./
RUN npm install --force
COPY . .
RUN npm run build
# Use an official lightweight Python image
FROM python:3.12-slim
@@ -16,6 +24,8 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of the application code
COPY ./app /code/app
COPY --from=builder /react-app/dist /code/app/static
COPY --from=builder /react-app/src/public /code/app/static
# Run the FastAPI application using the official CLI
CMD ["fastapi", "run", "app/main.py", "--port", "80"]