summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorJoshua Shreve <j.a.shreve@gmail.com>2021-10-17 16:10:02 -0400
committerJoshua Shreve <j.a.shreve@gmail.com>2021-10-17 16:10:02 -0400
commitab5f979a952a30cf24c0a8be6f1ef2bb45f44092 (patch)
tree290bc551d09d97d324217902bdc190c6ce928423 /docker/Dockerfile
parentef31d4c2716f4a64231febf39e1e2dddb7db3878 (diff)
Fixed error due to package requirement issue
one of the packages required by cadquery was improperly configured and causes issues with the cadquery import. Had to change docker base image and modify to include a configured environment to work around the issue. May require rebuilding or removing and recreating your docker image and containers. If you continue to encounter an import error please contact me.
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile23
1 files changed, 14 insertions, 9 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9b43f7d..1065776 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,18 +1,23 @@
-FROM mambaorg/micromamba:0.8.2
+FROM continuumio/miniconda3
RUN apt-get update && \
apt-get install -y libgl1-mesa-glx gcc bash && \
rm -rf /var/lib/apt/lists/*
-WORKDIR /app
-RUN micromamba install -y -n base -c conda-forge -c cadquery \
- python=3 \
- cadquery=master \
- numpy=1 \
- scipy=1 && \
- (rm /opt/conda/pkgs/cache/* || true)
+
+COPY ./docker/environment.yml .
+
+RUN conda env create -f environment.yml
+
+RUN conda init bash
+
+SHELL ["bash", "-lc"]
+
+RUN conda activate myenv
RUN pip3 install solidpython
+RUN echo "source activate myenv" >> ~/.bashrc
+ENV PATH /opt/conda/envs/myenv/bin:$PATH
-WORKDIR /app/src \ No newline at end of file
+WORKDIR /app/src