Files
LMS/Dockerfile

20 lines
452 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /app
RUN apt-get update \
&& apt-get install -y gcc libffi-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
EXPOSE 8111
CMD ["gunicorn", "--bind", "0.0.0.0:8111", "--workers", "3", "--threads", "2", "--chdir", "/app/lmsege", "lmsege.wsgi:application"]