Files
app1/Dockerfile
MTimka 0f9b7a24e6
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
first commit
2026-05-13 11:31:18 -07:00

14 lines
311 B
Docker

FROM python:3.11-slim as builder
WORKDIR /build
COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
FROM python:3.11-slim
WORKDIR /app
COPY --from=builder /install /usr/local
COPY app.py .
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]