fastapi-socketify-asgi-pypy.dockerfile 300 B

12345678910111213141516
  1. FROM pypy:3.9-bullseye
  2. WORKDIR /fastapi
  3. RUN python -m venv /opt/venv
  4. ENV PATH="/opt/venv/bin:$PATH"
  5. COPY requirements-socketify-pypy.txt ./
  6. RUN apt-get update; apt-get install libuv1 -y
  7. RUN pip3 install -r requirements-socketify-pypy.txt
  8. COPY . ./
  9. EXPOSE 8080
  10. CMD python ./app-socketify-asgi.py