rAI / Dockerfile
Junivert's picture
Update Dockerfile
36e9f2b verified
raw
history blame contribute delete
454 Bytes
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"]