Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'Mapping' from 'collections' #56

Open
ghost opened this issue Apr 23, 2022 · 1 comment
Open

cannot import name 'Mapping' from 'collections' #56

ghost opened this issue Apr 23, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 23, 2022

unable to run image monolith-service due to error

@ghost
Copy link
Author

ghost commented Apr 23, 2022

tried compiling python3.7 on ubuntu but kept having issue.
ended up changing base image to get it working.

Dockerfile
FROM centos:latest
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum update -y
RUN yum install -y python3-pip
COPY ./service/requirements.txt .
RUN pip3 install -r ./requirements.txt
COPY ./service /MythicalMysfitsService
WORKDIR /MythicalMysfitsService
EXPOSE 80
ENTRYPOINT ["python3"]
CMD ["mythicalMysfitsService.py"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants