socketify.py-asgi-python3.dockerfile 297 B

123456789101112131415
  1. FROM python:3.11-bullseye
  2. WORKDIR /usr/src/app
  3. COPY requirements-python3.txt ./
  4. RUN apt-get update
  5. RUN apt install libuv1-dev -y
  6. RUN pip install --no-cache-dir ujson
  7. RUN pip install --no-cache-dir -r requirements-python3.txt
  8. COPY . .
  9. EXPOSE 3000
  10. CMD WORKER_COUNT=$(nproc) python ./raw-asgi.py