python-server-api / Dockerfile
Aleksandr Filippov
Added fake comments api endpoint
38b0254
raw
history blame contribute delete
344 Bytes
FROM python:3.10-slim AS base
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
bash \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
RUN pip3 install -r requirements.txt
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]