-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
32 lines (24 loc) · 871 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
27
28
29
30
31
32
FROM alpine:3.7
ENV GAM_VERSION=4.40
COPY gam-runner.sh /usr/bin/gam.sh
RUN apk update \
&& apk add bash curl python py-crypto py-openssl py-pip \
&& pip install -U pip \
&& pip install -U six \
&& mkdir /gam \
&& cd /tmp \
&& curl -L -o /tmp/v$GAM_VERSION.tar.gz https://github.com/jay0lee/GAM/archive/v$GAM_VERSION.tar.gz \
&& tar -C /gam -zxf /tmp/v$GAM_VERSION.tar.gz \
&& cd /gam && mv GAM-${GAM_VERSION}/* . \
&& touch /gam/src/nobrowser.txt /gam/src/noupdatecheck.txt \
&& rm -rf /gam/GAM-${GAM_VERSION} \
&& chmod 0755 /usr/bin/gam.sh \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
WORKDIR /gam
ENTRYPOINT [ "/usr/bin/gam.sh" ]
CMD [ "--help" ]
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/broadinstitute/docker-gam"