Skip to content

Commit 2cca0c0

Browse files
committed
Update dockerfile for Django npm needs
1 parent c7db2d1 commit 2cca0c0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docker/Dockerfile-dev

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ RUN apt-get update
1515
RUN apt-get install -qq apt-utils
1616
# we need libsqlite3-dev now if ubuntu doesn't come with that, we'll need
1717
# to build our own Python
18-
# Leave out inkscape
19-
RUN DEBIAN_FRONTEND="noninteractive" TZ="US/Eastern" apt-get install -qq liblapack-dev llvm-10 llvm-10-dev gfortran maria libmysqlclient-dev sqlite3 python3-pip python3-setuptools git python3-matplotlib python-matplotlib-data x11-apps asymptote w3m latexmk texlive-xetex lmodern texlive-latex-extra texlive-fonts-recommended
18+
# Leave out inkscape for now.
19+
RUN DEBIAN_FRONTEND="noninteractive" TZ="US/Eastern" apt-get install -qq liblapack-dev llvm-10 llvm-10-dev gfortran maria libmysqlclient-dev sqlite3 python3-pip python3-setuptools git python3-matplotlib python-matplotlib-data x11-apps asymptote w3m latexmk texlive-xetex lmodern texlive-latex-extra texlive-fonts-recommended nodejs
2020
RUN pip install --no-cache-dir -r requirements.txt
2121
COPY requirements-mathicsscript.txt ./
2222
RUN pip install --no-cache-dir -r requirements-mathicsscript.txt
@@ -35,8 +35,9 @@ RUN ${PYTHON} -m pip install -e git://github.com/Mathics3/mathics-django#egg=Mat
3535

3636
RUN pip install pymathics-natlang
3737
RUN pip install pymathics-graph
38+
RUN (cd src/mathics-django && npm install && make)
3839
RUN (cd src/mathics-django && ${PYTHON} mathics_django/docpipeline.py -o)
39-
RUN mkdir -p /usr/src/app/.local/var/mathics && cp -v /root/.local/var/mathics/doc_data.pcl /usr/src/app/.local/var/mathics/doc_data.pcl nodejs
40+
RUN mkdir -p /usr/src/app/.local/var/mathics && cp -v /root/.local/var/mathics/doc_data.pcl /usr/src/app/.local/var/mathics/doc_data.pcl
4041

4142
RUN ${PYTHON} -m pip install -e git://github.com/Mathics3/mathicsscript#egg=mathicsscript[full]
4243
RUN (cd src/mathicsscript && make)

docker/Dockerfile-dev+debug

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get install -qq apt-utils
1616
# we need libsqlite3-dev now if ubuntu doesn't come with that, we'll need
1717
# to build our own Python
1818
# Leave out inkscape for now.
19-
RUN DEBIAN_FRONTEND="noninteractive" TZ="US/Eastern" apt-get install -qq liblapack-dev llvm-10 llvm-10-dev gfortran maria libmysqlclient-dev sqlite3 python3-pip python3-setuptools git python3-matplotlib python-matplotlib-data x11-apps asymptote w3m latexmk texlive-xetex lmodern texlive-latex-extra texlive-fonts-recommended
19+
RUN DEBIAN_FRONTEND="noninteractive" TZ="US/Eastern" apt-get install -qq liblapack-dev llvm-10 llvm-10-dev gfortran maria libmysqlclient-dev sqlite3 python3-pip python3-setuptools git python3-matplotlib python-matplotlib-data x11-apps asymptote w3m latexmk texlive-xetex lmodern texlive-latex-extra texlive-fonts-recommended nodejs npm
2020
RUN pip install --no-cache-dir -r requirements.txt
2121
COPY requirements-mathicsscript.txt ./
2222
RUN pip install --no-cache-dir -r requirements-mathicsscript.txt
@@ -36,8 +36,9 @@ RUN ${PYTHON} -m pip install -e git://github.com/Mathics3/mathics-django#egg=Mat
3636

3737
RUN pip install pymathics-natlang
3838
RUN pip install pymathics-graph
39+
RUN (cd src/mathics-django && npm install && make)
3940
RUN (cd src/mathics-django && ${PYTHON} mathics_django/docpipeline.py -o)
40-
RUN mkdir -p /usr/src/app/.local/var/mathics && cp -v /root/.local/var/mathics/doc_data.pcl /usr/src/app/.local/var/mathics/doc_data.pcl nodejs
41+
RUN mkdir -p /usr/src/app/.local/var/mathics && cp -v /root/.local/var/mathics/doc_data.pcl /usr/src/app/.local/var/mathics/doc_data.pcl
4142

4243
RUN ${PYTHON} -m pip install -e git://github.com/Mathics3/mathicsscript#egg=mathicsscript[full]
4344
RUN (cd src/mathicsscript && make)

0 commit comments

Comments
 (0)