सभी,
एक प्रश्न मिला, एक रेपो खींचने की कोशिश कर रहा है और फिर "इंस्टॉल करें" का उपयोग करें लेकिन त्रुटि प्राप्त करें:
क्या आप मुझे बता सकते हैं कि मैं कहाँ गलत हूँ?
मेरा डॉकरफाइल:
# 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"]
0
TSlegaitis
8 नवम्बर 2021, 17:15
1 उत्तर
सबसे बढ़िया उत्तर
https://github.com/slegaitis/ta-lib पर कोड नहीं है ए। configure
स्क्रिप्ट रूट फोल्डर में।
इसका README.md में विवरण भी नहीं है।
मूल स्रोत कोड यहां पाया जा सकता है: https://sourceforge.net/p/ta-lib /कोड/
मैं किसी के कोड का उपयोग नहीं करूंगा यदि इसमें मूल स्रोत को नोटिस शामिल नहीं है।
1
Daniel W.
8 नवम्बर 2021, 19:57
तुम सही हो, धन्यवाद मेरा अपना बुरा... :)
– TSlegaitis
8 नवम्बर 2021, 20:04
./configure
नहीं मिला। हो सकता है कि आप गलत निर्देशिका में हों, या कोई कॉन्फ़िगर स्क्रिप्ट नहीं है...ta-lib/c/
में रहना चाहते हैं और वहां मेक चलाना चाहते हैं।