我也面临着同样的问题&;只需更换即可解决
RUN chmod +x /start.sh
CMD ["startup.sh"]
通过
ENTRYPOINT ["sh", "/app/startup.sh"]
您的最终码头文件将是:
FROM rocker/r-ubuntu:20.04
LABEL maintainer="Utkarsh Saraf"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common \
apt-utils \
libxml2-dev \
openjdk-8-jdk \
build-essential \
libcurl4-gnutls-dev \
libssl-dev \
openssh-server && \
apt-get clean
# for enabling SSh in container ------------------------------#
EXPOSE 80 2222 3306 8081
WORKDIR /app
COPY . /app
COPY start.sh start.sh
ENTRYPOINT ["sh", "/app/startup.sh"]
我希望这部分能帮助你解决你的问题