-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 748 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 748 Bytes
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
FROM buildpack-deps:buster
RUN apt-get update -y && apt install default-jre -y
RUN apt-get install curl wget htop zsh -y
WORKDIR /src
COPY ./container /src/container
COPY pyproject.toml /src/pyproject.toml
COPY poetry.lock /src/poetry.lock
RUN /src/container/setup.sh
#RUN /root/.local/bin/poetry run pip install -e d
RUN apt-get install -y vim
ENV SHELL /bin/zsh
ENV PATH /root/miniconda3/envs/310/bin:/root/.local/bin:/root/miniconda3/bin:$PATH
RUN poetry export --dev --with-credentials --without-hashes -f requirements.txt -E server > requirements.txt && pip install -r requirements.txt
RUN pip install torch sentence-transformers fastapi pre-commit
RUN pip install streamlit --force-reinstall
COPY . /src
RUN pip install -e .
CMD zsh