-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (33 loc) · 1.06 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
# Create Docker container that can run afq analysis with the Flywheel SDK.
# Start with the afq-pipeline container
FROM scitran/afq-pipeline:1.0.2
MAINTAINER Michael Perry <[email protected]>
ENV FLYWHEEL /flywheel/v0
WORKDIR ${FLYWHEEL}
COPY run ${FLYWHEEL}/run
###########################
# Install dependencies
RUN apt-get update && apt-get install -y --force-yes \
python-pip \
git \
python-levenshtein
############################
# Install the Flywheel SDK
RUN pip install flywheel-sdk
############################
# FUZZY
RUN pip install --upgrade pip && \
pip install fuzzywuzzy && \
pip install fuzzywuzzy[speedup]
############################
# FLYWHEEL
COPY fw_sdk_functions.py ${FLYWHEEL}/
COPY fw_sdk_getData.py ${FLYWHEEL}/
############################
# ENV preservation for Flywheel Engine
RUN env -u HOSTNAME -u PWD | \
awk -F = '{ print "export " $1 "=\"" $2 "\"" }' > ${FLYWHEEL}/docker-env.sh
# Configure entrypoint
RUN chmod +x ${FLYWHEEL}/*
ENTRYPOINT ["/flywheel/v0/run"]
COPY manifest.json ${FLYWHEEL}/manifest.json