Open spuder opened 2 years ago
This appears to be a common problem others have reported in other projects. I've tried the following solutions in my local Dockerfile with no luck so far
❌
RUN easy_install markupsafe
RUN pip3 install --no-cache-dir stl numpy-stl
❌
RUN pip install markupsafe
RUN pip3 install --no-cache-dir stl numpy-stl
❌
RUN pip install markupsafe
RUN pip3 install --no-cache-dir stl numpy-stl
❌
RUN apt reinstall python-markupsafe
RUN pip3 install --no-cache-dir stl numpy-stl
publysher/alpine-numpy
hasn't been updated in 4 years. By changing the from line from publysher/alpine-numpy
to python:3.6-alpine3.7
then adding the apk add && pip install numpy
commands taken from the referenced dockerfile I was able to get this working. However it looses all the benefits of having a prebuilt dockerfile so it takes a very long time to build
Temporary solution:
# FROM publysher/alpine-numpy
FROM python:3.6-alpine3.7
WORKDIR /usr/src/app
RUN apk --no-cache add --virtual .builddeps gcc gfortran musl-dev && pip install numpy==1.14.0 && apk del .builddeps && rm -rf /root/.cache
RUN pip install -U MarkupSafe
RUN pip3 install --no-cache-dir stl numpy-stl
COPY stldim.py .
COPY .passed_file.stl .
ENTRYPOINT ["python", "./stldim.py" ]
CMD [ ".passed_file.stl" ]
A better long term solution would be to have a github action or manual build process that builds this once, then stores on dockerhub. That way users just need to do docker pull
and they will quickly get a repeatable container.
https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
| OS: 11.6.1 (Big Sur) | Docker: 20.10.11
Thank you for providing a Dockerfile.
When attempting to run
./run-in-docker.sh Hook.stl
The script produces the following errorRelated: https://github.com/rdickert/project-quicksilver/issues/6
Here is how others have fixed it:
Full Output