MilesCranmer commited on
Commit
9a56c67
1 Parent(s): 0810b27

Add commands for Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. README.md +15 -0
Dockerfile CHANGED
@@ -27,4 +27,4 @@ RUN julia -e 'using Pkg; Pkg.add("SymbolicRegression")'
27
  # Install IPython and other useful libraries:
28
  RUN pip3 install ipython jupyter matplotlib
29
 
30
- CMD ["ipython"]
 
27
  # Install IPython and other useful libraries:
28
  RUN pip3 install ipython jupyter matplotlib
29
 
30
+ CMD ["bash"]
README.md CHANGED
@@ -70,6 +70,21 @@ required. Most common issues at this stage are solved
70
  by [tweaking the Julia package server](https://github.com/MilesCranmer/PySR/issues/27).
71
  to use up-to-date packages.
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  # Quickstart
74
 
75
  Here is some demo code (also found in `example.py`)
 
70
  by [tweaking the Julia package server](https://github.com/MilesCranmer/PySR/issues/27).
71
  to use up-to-date packages.
72
 
73
+ ## Docker
74
+
75
+ You can also test out PySR in Docker, without
76
+ installing it locally, by running the following command in
77
+ the root directory of this repo:
78
+ ```bash
79
+ docker build --pull --rm -f "Dockerfile" -t pysr "."
80
+ ```
81
+ This builds an image called `pysr`. You can then run this with:
82
+ ```bash
83
+ docker run -it --rm -v "$PWD:/data" pysr ipython
84
+ ```
85
+ which will link the current directory to the container's `/data` directory
86
+ and then launch ipython.
87
+
88
  # Quickstart
89
 
90
  Here is some demo code (also found in `example.py`)