18 lines
266 B
Docker
18 lines
266 B
Docker
FROM python:latest
|
|
|
|
WORKDIR ./
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN mkdir app
|
|
ENV PYTHONPATH=/app
|
|
|
|
COPY . ./app
|
|
|
|
|
|
RUN ls
|
|
|
|
# Ejecuta uvicorn
|
|
CMD ["/bin/sh", "-c", "uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"]
|
|
|