Skip to content

Commit 9341210

Browse files
committed
fix laspec ModuleNotFound error
1 parent f45524a commit 9341210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ENV OMP_NUM_THREADS=1 \
2222

2323
# copy laspec
2424
COPY .condarc /root/
25-
COPY laspec /laspec/
25+
COPY laspec /laspec/laspec
2626
COPY setup.py /laspec/
2727
COPY README.md /laspec/
2828
COPY requirements.txt /laspec/
@@ -38,11 +38,11 @@ RUN --mount=type=cache,id=pip,uid=0,gid=0,target=/root/.cache \
3838
&& ipython /slam/upgrade_astropy.py
3939

4040
# CMD
41-
CMD ["ipython", "/slam/predict.py"]
41+
CMD ["python", "/slam/predict.py"]
4242

4343
# docker build -t astroslam:latest -f Dockerfile --no-cache .
4444
# docker run astroslam:latest pip list
45-
# docker run -v /nfsdata/share/lamost/dr11-v1.0/fits/20191026/HD213633N331403V01/spec-58783-HD213633N331403V01_sp14-205.fits.gz:/slam/input.fits astroslam:latest python /slam/predict.py
45+
# docker run -v /nfsdata/share/lamost/dr11-v1.0/fits/20191026/HD213633N331403V01/spec-58783-HD213633N331403V01_sp14-205.fits.gz:/slam/input.fits astroslam
4646
# docker run -it -v /nfsdata/share/lamost/dr11-v1.0/fits/20191026/HD213633N331403V01/spec-58783-HD213633N331403V01_sp14-205.fits.gz:/slam/input.fits astroslam:latest bash
4747

4848
#http://data.astropy.org/coordinates/sites.json

0 commit comments

Comments
 (0)