generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (39 loc) · 1.4 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Docker file for unirep_analysis ChRIS plugin app
#
# Build with
#
# docker build -t <name> .
#
# For example if building a local version, you could do:
#
# docker build -t local/pl-unirep_analysis .
#
# In the case of a proxy (located at 192.168.13.14:3128), do:
#
# docker build --build-arg http_proxy=http://192.168.13.14:3128 --build-arg UID=$UID -t local/pl-unirep_analysis .
#
# To run an interactive shell inside this container, do:
#
# docker run -ti --entrypoint /bin/bash local/pl-unirep_analysis
#
# To pass an env var HOST_IP to container, do:
#
# docker run -ti -e HOST_IP=$(ip route | grep -v docker | awk '{if(NF==11) print $9}') --entrypoint /bin/bash local/pl-unirep_analysis
#
FROM alpine:latest as download
WORKDIR /tmp
RUN apk add --no-cache aws-cli \
&& rm -rf /var/cache/apk/*
RUN aws s3 sync --no-sign-request --quiet s3://unirep-public/1900_weights/ /tmp/data/1900_weights/
RUN aws s3 sync --no-sign-request --quiet s3://unirep-public/256_weights/ /tmp/data/256_weights/
RUN aws s3 sync --no-sign-request --quiet s3://unirep-public/64_weights/ /tmp/data/64_weights/
FROM tensorflow/tensorflow:1.3.0-py3 as unirep
LABEL maintainer="FNNDSC <[email protected]>"
COPY --from=download /tmp/data/ /usr/local/lib/unirep_analysis
WORKDIR /usr/local/src
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
RUN pip install .
COPY docker-entrypoint.sh /
CMD ["unirep_analysis"]