-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.11.5
USER root
ENV PYTHONUNBUFFERED 1
ENV C_FORCE_ROOT true
RUN mkdir /opt/search
COPY . /opt/search
COPY poetry.lock /opt/search/poetry.lock
COPY pyproject.toml /opt/search/pyproject.toml
WORKDIR /opt/search
RUN apt update && \
apt-get install -y build-essential python3-pip && \
apt-get install -y libpq-dev python3-dev graphviz && \
apt-get install -y unixodbc-dev && \
apt-get install -y default-libmysqlclient-dev && \
apt-get install -y --no-install-recommends unixodbc-dev && \
apt install libaio1 && \
python -m pip install --upgrade pip && \
pip install pkginfo virtualenv poetry && \
poetry config cache-dir /opt/search/cache && \
poetry config virtualenvs.create false
RUN poetry install --no-root --no-dev -vvv
#RUN pip install --no-cache-dir b2m.shared_kernel b2m.client b2m.ingestion.executor b2m.dataframe.csv b2m.dataframe.excel b2m.datasource.s3 b2m.datasource.sql b2m.api b2m.ml.automl b2m.mljar.supervised b2m.ml.bigdata -i http://odin:asgard_2021.@3.67.172.47/simple/ --trusted-host 3.67.172.47
WORKDIR /opt/search