Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

435
Vistas
"No matching distribution found for fastapi " using pip in Ubuntu Docker

I am trying to create an image to run api(fastapi) in docker and the software that i am using in api requires ubuntu 16.04 while I am trying to install python packages I am getting "No matching distribution found for fastapi " error while other packages are being correctly installed. Here is my Docker file code

FROM ubuntu:16.04
LABEL maintainer="sai"

COPY ./app /api/api
COPY requirements.txt ./requirements.txt
RUN apt-get update \
    && apt install python3-pip -y \
    && pip3 install --upgrade pip==20.0.1 \
    && pip install -r requirements.txt
    
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        g++ \
        make \
        automake \
        autoconf \
        bzip2 \
        unzip \
        wget \
        sox \
        libtool \
        git \
        subversion \
        python2.7 \
        python3 \
        zlib1g-dev \
        gfortran \
        ca-certificates \
        patch \
        ffmpeg \
    vim && \
    rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/bin/python2.7 /usr/bin/python
 
#other toolkit installation commands     

ENV PYTHONPATH=/api
WORKDIR /api

EXPOSE 8000

ENTRYPOINT ["uvicorn"]
CMD ["api.main:app", "--host", "0.0.0.0"]

I am new to docker so excuse me for my mistakes. I have a working api i need to dockerize it also the api involves creating and deleting file and folders is this ok with Docker?

Note I also tried upgrading pip to latest version but didn't work any pointers to further helpful resources in dockerizing the api are most welcome

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda