@@ -7,8 +7,8 @@ FROM python:bookworm
7
7
LABEL maintainer="rht <rhtbot@protonmail.com>"
8
8
9
9
# To use this Dockerfile:
10
- # 1. `docker build . -t mymesa_image `
11
- # 2. `docker run --name mymesa_instance -p 8765:8765 -it mymesa_image `
10
+ # 1. `docker build . -t mesa_image `
11
+ # 2. `docker run --name mesa_instance -p 8765:8765 -it mesa_image `
12
12
# 3. In your browser, visit http://127.0.0.1:8765
13
13
#
14
14
# Currently, this Dockerfile defaults to running the Schelling model, as an
@@ -19,7 +19,7 @@ LABEL maintainer="rht <rhtbot@protonmail.com>"
19
19
# `docker run --name mymesa_instance -p 8765:8765 -e MODEL_DIR=/mesa-examples/examples/sugarscape_cg -it mymesa_image`
20
20
# Note: the model directory MUST contain an app.py file.
21
21
22
- ENV MODEL_DIR=/mesa-examples/ examples/schelling_experimental
22
+ ENV MODEL_DIR=/opt/ mesa/mesa/ examples/basic/schelling
23
23
24
24
# Don't buffer output:
25
25
# https://docs.python.org/3.10/using/cmdline.html?highlight=pythonunbuffered#envvar-PYTHONUNBUFFERED
@@ -29,10 +29,11 @@ WORKDIR /opt/mesa
29
29
30
30
COPY . /opt/mesa
31
31
32
- RUN cd / && git clone https://github.com/projectmesa/mesa-examples.git
33
-
34
32
EXPOSE 8765/tcp
35
33
36
- RUN pip3 install -e /opt/mesa
34
+ RUN pip3 install -e /opt/mesa[all]
37
35
38
36
CMD ["sh" , "-c" , "cd $MODEL_DIR && solara run app.py --host=0.0.0.0" ]
37
+
38
+ # To check file system:
39
+ # docker exec -it mesa_instance bash
0 commit comments