8 lines
311 B
Docker
8 lines
311 B
Docker
FROM docker.io/library/python:3.12-slim
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y curl systemd && rm -rf /var/lib/apt/lists/*
|
|
RUN pip install fastapi uvicorn requests-unixsocket pyyaml pytest httpx
|
|
COPY app.py .
|
|
COPY tests/ ./tests/
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|