You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
411 B
18 lines
411 B
FROM python:3.12-slim |
|
|
|
# pg_isready нужен для проверки готовности БД в entrypoint |
|
RUN apt-get update && apt-get install -y --no-install-recommends postgresql-client \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
WORKDIR /app |
|
|
|
ENV PYTHONPATH=/app |
|
|
|
COPY requirements.txt . |
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
COPY . . |
|
|
|
RUN chmod +x entrypoint.sh |
|
|
|
CMD ["bash", "entrypoint.sh"]
|
|
|