-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 954 Bytes
/
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
FROM tensorflow/tensorflow:2.3.0-gpu
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& add-apt-repository -y ppa:deadsnakes \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.8-venv \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y libsndfile1-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& :
WORKDIR /api
COPY pyproject.toml poetry.lock ./
#RUN poetry export -f requirements.txt | /venv/bin/pip install -r /dev/stdin
ENV POETRY_VERSION=1.1.5
RUN pip install "poetry==$POETRY_VERSION"
ENV POETRY_VIRTUALENVS_PATH=./
#RUN poetry config virtualenvs.create false
#RUN poetry env use 3.8
#RUN poetry install --no-interaction
COPY . .
#RUN ls -lSht
#RUN ./*-py3.8/bin/activate
#CMD ["python", "-m", "uvicorn", "api.main:api", "--reload", "--host", "0.0.0.0"]