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 update -y
RUN apt-get upgrade -y RUN apt-get upgrade -y
# Install bash shell for troubleshooting.
RUN apt-get install -y bash
# Install ExoPlaSim dependencies. # Install ExoPlaSim dependencies.
RUN apt-get install -y \ RUN apt-get install -y \
build-essential gfortran \ build-essential gfortran \
@ -41,8 +44,11 @@ RUN pip install --user --no-cache-dir \
pillow \ pillow \
exoplasim exoplasim
# Add pip user binaries to path.
ENV PATH="$PATH:/home/python/.local/bin"
# Set working directory to build directory. # Set working directory to build directory.
WORKDIR /build WORKDIR /build
# Run model. # Run model.
ENTRYPOINT [ "python", "./model.py" ] CMD [ "python", "./model.py" ]