fastapi-socketify-asgi.dockerfile 328 B

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