-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
41 lines (30 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
FROM alpine:latest
LABEL maintainer="[email protected]"
# Runtime arguments
ARG BUILD_DATE
ARG IMAGE_NAME
ARG AWS_IAMAUTH_DOWNLOAD="https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/aws-iam-authenticator"
ARG GREMLIN_PYTHON_REPO="https://github.com/gremlin/gremlin-python.git"
# Container Labels
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name=$IMAGE_NAME
LABEL org.label-schema.version=$BUILD_VERSION
RUN apk add --no-cache --update bash ca-certificates cargo curl gcc git go gzip \
libffi-dev make musl-dev openssh openssl openssl-dev python3 python3-dev rust swig tar
RUN python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools twine wheel && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN pip --no-cache-dir install --upgrade awscli boto3 requests
RUN curl -s -L $AWS_IAMAUTH_DOWNLOAD -o /usr/local/bin/aws-iam-authenticator && chmod 755 /usr/local/bin/aws-iam-authenticator
RUN mkdir -p /opt/gremlin-python
WORKDIR /opt/gremlin-python
# RUN git clone $GREMLIN_PYTHON_REPO .
COPY . .
# uncomment to install the package container wide
# RUN python3 setup.py install
ENTRYPOINT ["/bin/ash"]
CMD ["/bin/ash"]