-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfileMED
More file actions
executable file
·25 lines (20 loc) · 895 Bytes
/
Copy pathDockerfileMED
File metadata and controls
executable file
·25 lines (20 loc) · 895 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
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
RUN export PYTHONPATH=. && export PATH=$PATH
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install ffmpeg libsm6 libxext6 curl iotop git -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN pip3 install --upgrade pip pyopenssl cryptography
RUN /bin/bash -c 'curl -sSL https://install.python-poetry.org | python - --version 1.6.1'
COPY . /code
RUN rm -r /code/config/experiments/*
COPY ./config/experiments/demo_med /code/config/experiments/
WORKDIR /code
RUN python3.8 -m pip install poetry \
&& python3.8 -m poetry config virtualenvs.create false \
&& python3.8 -m poetry lock --no-update \
&& python3.8 -m poetry install --all-extras
WORKDIR /code/dui
ENV UI_TITLE="Фреймворк для Медицины"
ENV WANDB_DISABLED="true"
ENTRYPOINT PYTHONUNBUFFERED=1 python3.8 app.py