How to farward ports?

I have this .drone.yml:

kind: pipeline
name: default
type: docker

steps:
  - name: install_requirements
    image: python
    commands:
      - pip install -r requirements.txt
      - python main.py
    ports:
      - 7632
    expose:
      - 7632

I want to start fastapi/uvicorn app, but I need to forward ports(-p 7632:7632 in docker cli) to access the server. What should I do to solve this problem?

Hello @Mootfrost777

In this step you are running a python app, what needs to communicate with this app?