Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 1, 2023
1 parent d412bb9 commit 3bd949b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,9 @@ RUN mamba install -y -c conda-forge \
COPY . /source

# Build and install
RUN cd /source/application \
&& mkdir build \
&& cd build \
&& /opt/conda/bin/cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/conda -DCMAKE_INSTALL_PREFIX=/opt/conda \
&& make -j$(nproc) \
&& make install \
&& cd /source \
&& /opt/conda/bin/pip install . \
&& rm -rf /source

ENV PYTHONPATH=/opt/conda/lib:${PYTHONPATH}
RUN cd source && python -m pip install .

# ENV PYTHONPATH=/opt/conda/lib:${PYTHONPATH}

RUN echo "#!/bin/bash\nexec /opt/conda/bin/conda run --no-capture-output -n base /opt/conda/bin/python \"\$@\"" > /usr/local/bin/entrypoint.sh \
&& chmod +x /usr/local/bin/entrypoint.sh
Expand Down

0 comments on commit 3bd949b

Please sign in to comment.