-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
45 lines (35 loc) · 1.39 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
#############################################################
# Dockerfile to build container for Synapse Python client
#############################################################
# Base Image
FROM ubuntu:16.04
# Metadata
LABEL base.image="ubuntu:16.04"
LABEL version="1"
LABEL software="synapseclient"
LABEL software.version="1.6.2.dev"
LABEL description="Programmatic interface to Synapse services for Python"
LABEL website="https://github.com/Sage-Bionetworks/synapsePythonClient"
LABEL documentation="https://github.com/Sage-Bionetworks/synapsePythonClient"
LABEL license="https://github.com/Sage-Bionetworks/synapsePythonClient"
LABEL tags="General"
# File Author / Maintainer
MAINTAINER James Eddy <james.a.eddy@gmail.com>
# set version here to minimize need for edits below
# ENV VERSION=v1.6.2
ENV BRANCH=develop
ENV VERSION=6ba6a3ebde81fe8ed4d0c231ab42c613aa03334f
# set up packages
USER root
ENV PACKAGES python-dev git python-setuptools python-pip
RUN apt-get update && \
apt-get install -y --no-install-recommends ${PACKAGES}
RUN git clone -b ${BRANCH} git://github.com/Sage-Bionetworks/synapsePythonClient.git && \
cd synapsePythonClient && \
git checkout ${VERSION} && \
python setup.py develop
COPY bin/parse_config.py /usr/local/bin/
COPY bin/synapse_get /usr/local/bin/
RUN chmod a+x /usr/local/bin/synapse_get
RUN chmod a+x /usr/local/bin/parse_config.py
CMD ["/bin/bash"]