File size: 454 Bytes
1880721
 
f38a191
 
 
fd86dc9
9fba013
 
 
 
 
f38a191
1880721
9fba013
 
1880721
8061987
91a1885
9fba013
91a1885
1880721
09f8dd5
f38a191
36e9f2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=51379

# install git
RUN apt-get update \
 && apt-get install -y git \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# clone repo
RUN git clone https://github.com/gilangf3000/rAI.git .

WORKDIR /app/backend

# install dependencies
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 51379

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "51379"]