Skip to content

Commit

Permalink
added virtual environment to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahughesuol committed Aug 6, 2024
1 parent 1e6f6fe commit f05eee5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMP2020 Artificial Intelligence/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ FROM ubuntu:latest

RUN apt upgrade && apt update

RUN apt -y install python3 swi-prolog cmake curl build-essential git-all
RUN apt -y install python3 swi-prolog cmake curl build-essential git-all python3-venv
RUN apt -y install python3-pip

RUN curl -d "action=AttachFile&do=get&target=fast-downward-23.06.tar.gz" -o fast-downward-23.06.tar.gz https://www.fast-downward.org/Releases/23.06 &&\
tar -xvzf fast-downward-23.06.tar.gz &&\
cd fast-downward-23.06 &&\
./build.py

RUN pip install --break-system-packages mesa
RUN pip install --break-system-packages scikit-learn scipy matplotlib numpy seaborn
RUN pip install --break-system-packages ipykernel
RUN python3 -m venv .venv && source .venv/bin/activate && echo 'source .venv/bin/activate' >> ~/.bashrc
RUN pip install mesa
RUN pip install scikit-learn scipy matplotlib numpy seaborn
RUN pip install ipykernel

0 comments on commit f05eee5

Please sign in to comment.