dockerfile

FROM tensorflow/tensorflow

RUN apt-get update && apt-get install -y --no-install-recommends
libsm6
libxext6
libxrender-dev
git
&&
apt-get clean &&
rm -rf /var/lib/apt/lists/*

WORKDIR /srv/vcode

COPY requirements.txt .

RUN pip install -r requirements.txt

# RUN pip install pipenv && pipenv install

# RUN git clone https://github.com/jonstewart/afflib.git && cd afflib/pyaff && python setup.py build && python setup.py install

EXPOSE 5001

CMD ["python", "/srv/vcode/checkapi.py"]

原文地址:https://www.cnblogs.com/yuanjia8888/p/10307731.html