Install bash. Set $PATH. s/ENTRYPOINT/CMD.

This commit is contained in:
Fern Garden 2025-09-07 19:18:07 +08:00
parent c8d95ed86b
commit 38244dce69

View file

@ -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" ]