sains-data-uas / Dockerfile
suyagi's picture
Update Dockerfile
dd5369a verified
Raw
History Blame Contribute Delete
236 Bytes
FROM python:3.10
WORKDIR /code
COPY requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /code/
# Expose port
EXPOSE 7860
# Run FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]