Skip to content

Commit 325ca28

Browse files
committed
Update Docker installation
1 parent 454e9f8 commit 325ca28

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-buster
1+
FROM python:3.8-buster
22

33
ENV MATHICS_HOME=/usr/src/app
44
ENV ENTRYPOINT_COMMAND="docker run -it {MATHICS_IMAGE}"
@@ -10,12 +10,13 @@ RUN chmod +x /entrypoint.sh
1010

1111
COPY requirements.txt ./
1212
RUN apt-get update
13-
RUN apt-get install -qq liblapack-dev llvm-dev gfortran
13+
RUN apt-get install -qq liblapack-dev llvm-dev gfortran maria
1414
RUN pip install --no-cache-dir -r requirements.txt
1515
COPY requirements-mathicsscript.txt ./
1616
RUN pip install --no-cache-dir -r requirements-mathicsscript.txt
1717

1818
RUN pip install pymathics-natlang
19+
RUN pip install mathicsscript
1920
RUN python -m nltk.downloader wordnet omw
2021
RUN python -m spacy download en
2122

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
mathics
1+
click
22
colorama
3+
columnize
4+
networkx
35
pygments
4-
mathicsscript
6+
term-background >= 1.0.1

docker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sympy>=1.6, < 1.7
1+
sympy>=1.6, <= 1.8dev
22
django >= 3.1.2, < 3.2
33
mpmath>=1.1.0
44
numpy

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ def run(self):
236236
"mathicsserver = mathics.server:main",
237237
],
238238
},
239+
scripts = [
240+
"script/dmathicsserver",
241+
"script/dmathicsscript",
242+
],
239243
long_description=long_description,
240244
long_description_content_type="text/x-rst",
241245
# don't pack Mathics in egg because of media files, etc.

0 commit comments

Comments
 (0)