我想将docker与pycharm pro一起使用,但是让我感到困惑。 这是我的Dockerfile,效果很好:
FROM alpine:latest
MAINTAINER Hulei SW-Tech <hulei886@aliyun.com>
RUN set -ex \
&& apk --no-cache update && apk --no-cache upgrade \
&& apk add --no-cache build-base \
curl \
git \
tzdata \
bash \
linux-headers \
libffi-dev \
openssl-dev \
bzip2-dev \
zlib-dev \
readline-dev \
sqlite-dev \
openssh-server \
python3-dev \
openssl-dev \
openssl \
libressl \
libc-dev \
libffi-dev \
libxml2-dev \
libxml2 \
libxslt-dev \
openssh-client \
openssh-sftp-server \
&& curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
&& echo 'export LANG="zh_CN.UTF-8"' >> /root/.profile \
&& echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> /root/.profile \
&& echo 'eval "$(pyenv init -)"' >> /root/.profile \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> /root/.profile \
&& . /root/.profile \
&& pyenv install 3.7.2 \
&& pyenv global 3.7.2 \
&& pip install pipenv \
&& mkdir -p /app
WORKDIR /app
RUN /root/.pyenv/shims/pipenv install requests \
beautifulsoup4 \
pymongo \
scrapy \
scrapyd
ENTRYPOINT ["/root/.pyenv/shims/pipenv","run"]
当我使用此Dockerfile生成映像时,然后选择此映像作为我的远程python互操作程序,但是这样的错误:
我该如何解决?我需要帮助!