FROM python:3.12.9-slim-bookworm ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 WORKDIR /app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home messenger COPY app ./app COPY migrations ./migrations COPY tests ./tests COPY contracts ./contracts COPY lab.json ./ COPY student-tests ./student-tests USER messenger EXPOSE 8080 CMD ["python", "-m", "app.main"]