L
L
LakeForest2021-06-12 14:33:53
Docker
LakeForest, 2021-06-12 14:33:53

Writes: ModuleNotFoundError: No module named. How to install a module from github on a Docker container?

Error: ModuleNotFoundError: No module named when I try to work through a container. Everything works locally.
60c49a9c85bc9493086367.png
Dockerfile

FROM ubuntu:18.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update --fix-missing && apt-get upgrade -y && apt-get autoremove && apt-get autoclean
RUN apt-get install -y apt-utils ffmpeg python3.6.2 python3-pip git nano

ARG PROJECT=mytts
ARG PROJECT_DIR=/${PROJECT}
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR

COPY . .
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt

RUN git clone https://github.com/nsu-ai/russian_g2p && cd russian_g2p && pip3 install .
RUN cd .. && rm -rf russian_g2p

RUN apt-get install -y locales && locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

CMD gunicorn --access-logfile - -w 1 --bind 0.0.0.0:5000 controller:app --timeout 15000

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question