全部,
有一個問題,試圖拉一個 repo 然后使用“make install”但得到錯誤:

你能告訴我我哪里出錯了嗎?
我的 Dockerfile:
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.8-alpine
EXPOSE 5000
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh make
# TA-Lib
RUN git clone https://github.com/slegaitis/ta-lib.git ta-lib
RUN cd ta-lib/ && ./configure --prefix=/usr && make && make install
# End TA-LIB INSTALL
# Install pip requirements
# COPY requirements.txt .
# RUN pip install --upgrade pip && python -m pip install -r requirements.txt
WORKDIR /app
COPY . /app
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
uj5u.com熱心網友回復:
https://github.com/slegaitis/ta-lib上的代碼沒有。configure根檔案夾中的腳本。
它甚至在 README.md 中都沒有描述。
原始源代碼可以在這里找到:https : //sourceforge.net/p/ta-lib/code/
如果某人的代碼不包含對原始來源的通知,我不會使用它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/353061.html
