Skip to content

Commit

Permalink
Add venv to Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger committed May 17, 2024
1 parent 8e7a100 commit f1984c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion benchmarks/testbenchmark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM linusseelinger/model-testmodel
COPY . /benchmark-server

RUN apt update && \
DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && \
DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv && \
python3 -m venv venv && \
. venv/bin/activate && \
pip install umbridge scipy

CMD ./server/minimal-server & python3 /benchmark-server/benchmark-server.py
4 changes: 3 additions & 1 deletion models/testmodel-python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM ubuntu:latest
COPY minimal-server.py /

RUN apt update && \
DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && \
DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv && \
python3 -m venv venv && \
. venv/bin/activate && \
pip install umbridge

CMD python3 minimal-server.py

0 comments on commit f1984c6

Please sign in to comment.