-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 887 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 887 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
28
29
30
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
SHELL ["/bin/bash", "-c"]
ENV POETRY_VERSION=1.1.7
ENV RPC_PORT=50051
ENV MODEL_ARTIFACT_DIR=/app/model1/models/OuluCASIA
ENV PYTHONUNBUFFERED=1
ENV RELOAD_APP_ON_FILE_CHANGE=true
ENV POETRY_VIRTUALENVS_CREATE=false
# Install prerequisites
RUN apt-get update && \
apt-get install -y git curl inotify-tools python3.7 python3-pip ffmpeg libsm6 libxext6 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1 && \
python3 -m pip install --upgrade pip && \
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3 && \
echo "source $HOME/.poetry/env" > ~/.bashrc
SHELL ["/bin/bash", "-c"]
WORKDIR /app
COPY .ssh /root/.ssh
COPY . /app
# Install dependencies
RUN source ~/.bashrc && poetry lock && poetry install --no-interaction --no-ansi
CMD /app/boot.sh