mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 07:23:41 -05:00
major refactoring + docker progress
This commit is contained in:
parent
ecb8a80f8b
commit
e75f8c944a
35 changed files with 227 additions and 104 deletions
21
backend/Dockerfile
Normal file
21
backend/Dockerfile
Normal 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" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue