major refactoring + docker progress

This commit is contained in:
Micha Albert 2024-09-09 16:37:02 -04:00
parent ecb8a80f8b
commit e75f8c944a
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
35 changed files with 227 additions and 104 deletions

21
backend/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM python:3.12-slim
EXPOSE 8000
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apt-get update
RUN apt-get install -y python3-opencv
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py schema.prisma .
COPY migrations .
RUN prisma generate
CMD [ "fastapi", "run", "main.py" ]