19 lines
No EOL
485 B
Docker
19 lines
No EOL
485 B
Docker
FROM python:3.12-bookworm
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
libpq-dev \
|
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV VIRTUAL_ENV=/venv \
|
|
PATH=/venv/bin:$PATH
|
|
|
|
RUN python -m venv /venv
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements/base.txt .
|
|
RUN pip install --no-cache-dir --requirement base.txt
|
|
|
|
CMD ["daphne", "-b", "0.0.0.0", "-p", "8000", "config.asgi:application"] |