E3K / Dockerfile
AiDeveloper1's picture
Update Dockerfile
07a30b6 verified
raw
history blame contribute delete
286 Bytes
FROM python:3.10-slim
WORKDIR /app
# copy requirements
COPY requirements.txt .
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# copy app
COPY . .
# expose port
EXPOSE 7860
# run fastapi
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]