testFastAPI / Dockerfile
KhairulAmirinUM's picture
new file
3fe739b
raw
history blame contribute delete
322 Bytes
FROM python:3.11
WORKDIR /code
COPY ./req.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
COPY ./src /code/src
# Set the entry point for FastAPI (assumes the app is in takjadi.main.py and the instance is 'app')
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]