Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Sep 12, 2024
1 parent 967cb0f commit 292bf22
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM python:3.9.4-slim
FROM python:3.12.5-slim

RUN apt-get update -y && apt-get install curl -y && apt-get install unzip -y
RUN curl -o bin.zip https://globalcdn.nuget.org/packages/dhi.mikecore.linux.rhel7.20.0.0.nupkg && \
RUN apt-get update -y && apt-get install -y curl unzip patchelf
RUN curl -o bin.zip https://globalcdn.nuget.org/packages/dhi.mikecore.linux.ubuntu.22.1.0.nupkg && \
unzip bin.zip && \
mkdir -p /tmp/mikecore/bin/linux && \
cp -r runtimes/linux-x64/native/* /tmp/mikecore/bin/linux

RUN pip install pytest numpy
RUN pip install pytest

ENV LD_LIBRARY_PATH=/usr/local/lib/python3.9/site-packages/mikecore/bin/linux
RUN patchelf --set-rpath '$ORIGIN' /tmp/mikecore/bin/linux/libufs.so && \
patchelf --set-rpath '$ORIGIN' /tmp/mikecore/bin/linux/libeum.so && \
patchelf --set-rpath '$ORIGIN' /tmp/mikecore/bin/linux/libMzCart.so && \
patchelf --set-rpath '$ORIGIN' /tmp/mikecore/bin/linux/libpfs2004.so && \
patchelf --set-rpath '$ORIGIN' /tmp/mikecore/bin/linux/libxerces-c-3.2.so

COPY . /tmp/

Expand Down

0 comments on commit 292bf22

Please sign in to comment.