Docker - 执行失败 运行 "make install"
Docker - Executed failed running "make install"
全部,
有问题,尝试拉回购然后使用“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"]
https://github.com/slegaitis/ta-lib 处的代码在根文件夹中没有 configure
脚本。
全部,
有问题,尝试拉回购然后使用“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"]
https://github.com/slegaitis/ta-lib 处的代码在根文件夹中没有 configure
脚本。