Код: Выделить всё
FROM ubuntu:18.04
MAINTAINER Amazon AI
RUN apt-get -y update && apt-get install -y --no-install-recommends \
wget \
python3-pip \
python3-setuptools \
nginx \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN pip --no-cache-dir install mlforecast==0.13.1 neuralforecast==1.7.3 optuna==3.6.1 pandas==2.2.2 plotly==5.22.0 statsforecast==1.7.6 torch==2.3.1 utilsforecast==0.1.12
RUN pip --no-cache-dir install scipy==1.2.1 scikit-learn==0.20.2 pandas flask gunicorn
ENV PYTHONUNBUFFERED=TRUE
ENV PYTHONDONTWRITEBYTECODE=TRUE
ENV PATH="/opt/program:${PATH}"
COPY decision_trees /opt/program
WORKDIR /opt/program
Я пытался запустить файл с разными версиями Ubuntu и с разными модификаторами, например "-- no-use-wheel --allow-all-external --allow-unverified блинкер", но все они генерировали разные ошибки до достижения ошибки версии.
Подробнее здесь: https://stackoverflow.com/questions/787 ... ocker-cont