Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
14 lines
311 B
Docker
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"] |