Skip to content

Commit

Permalink
Update Dockerfile.graalpy
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin authored Jul 1, 2024
1 parent 9cb399f commit 2560ba0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile.graalpy
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
FROM ghcr.io/graalvm/graalpy-community:24.0.1

RUN yum install -y libffi-devel
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

ENV PATH="/root/.cargo/bin:${PATH}"
RUN yum -y install libffi-devel rust cargo && yum clean all

RUN source /app/graalenv/bin/activate && \
pip install paramiko requests pinyin
Expand All @@ -12,4 +9,4 @@ RUN source /app/graalenv/bin/activate && \
RUN mkdir -p /usr/local/lib/python3.10/site-packages && \
cp -r /app/graalenv/lib/python3.10/site-packages/* /usr/local/lib/python3.10/site-packages

VOLUME ["/usr/local/lib/python3.10/site-packages", "/app/graalenv"]
VOLUME ["/usr/local/lib/python3.10/site-packages", "/app/graalenv"]

0 comments on commit 2560ba0

Please sign in to comment.