forked from marksgraham/flip-sample-application
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dockerfile
26 lines (18 loc) · 792 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
FROM python:3.8.10
RUN apt-get update && apt-get install -y dos2unix
RUN pip install -U pip
COPY ./requirements.txt ./
RUN pip install -r ./requirements.txt
RUN python3 -c "import torchvision;torchvision.datasets.CIFAR10(root='/root/data/', download=True)"
WORKDIR /nvflare/
RUN yes | poc -n 2 \
&& mkdir -p poc/admin/transfer
COPY ./apps/ /nvflare/poc/admin/transfer/
COPY ./utils/test.py /nvflare/poc/admin/
COPY ./utils/start_nvflare_components.sh /nvflare/
# Fix the Docker issue with line endings from .sh files when running it on Windows
# from https://github.com/docker/for-win/issues/1340
RUN dos2unix /nvflare/start_nvflare_components.sh
RUN chmod 777 /nvflare/start_nvflare_components.sh
ENV PATH="${PATH}:/nvflare/poc/admin/startup"
CMD ["./start_nvflare_components.sh"]