forked from ungleich-public/dynamicweb
30 lines
No EOL
656 B
Docker
30 lines
No EOL
656 B
Docker
FROM python:3.14.2-slim
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
build-essential \
|
|
libldap2-dev \
|
|
libsasl2-dev \
|
|
libpq-dev \
|
|
libjpeg-dev \
|
|
zlib1g-dev \
|
|
libxml2-dev \
|
|
libxslt1-dev \
|
|
libmemcached-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib \
|
|
pip install --no-cache-dir -r requirements.txt --no-deps
|
|
|
|
COPY . .
|
|
|
|
|
|
CMD ["gunicorn", "--workers", "1", "--bind", "0.0.0.0:8000", "dynamicweb.wsgi:application"] |