Install bash. Set $PATH. s/ENTRYPOINT/CMD.
This commit is contained in:
parent
c8d95ed86b
commit
38244dce69
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,9 @@ ARG GID=1001
|
|||
RUN apt-get update -y
|
||||
RUN apt-get upgrade -y
|
||||
|
||||
# Install bash shell for troubleshooting.
|
||||
RUN apt-get install -y bash
|
||||
|
||||
# Install ExoPlaSim dependencies.
|
||||
RUN apt-get install -y \
|
||||
build-essential gfortran \
|
||||
|
@ -41,8 +44,11 @@ RUN pip install --user --no-cache-dir \
|
|||
pillow \
|
||||
exoplasim
|
||||
|
||||
# Add pip user binaries to path.
|
||||
ENV PATH="$PATH:/home/python/.local/bin"
|
||||
|
||||
# Set working directory to build directory.
|
||||
WORKDIR /build
|
||||
|
||||
# Run model.
|
||||
ENTRYPOINT [ "python", "./model.py" ]
|
||||
CMD [ "python", "./model.py" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue