-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
29 lines (26 loc) · 839 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
FROM python:3.6 AS base
ARG CI_USER_TOKEN
ARG AZURE_BLOB_ACCOUNT_NAME
ARG AZURE_BLOB_ACCOUNT_KEY
RUN echo "machine github.com\n login $CI_USER_TOKEN\n" > ~/.netrc
ENV \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
PIPENV_HIDE_EMOJIS=true \
PIPENV_COLORBLIND=true \
PIPENV_NOSPIN=true \
PYTHONPATH="/app:${PYTHONPATH}" \
AZURE_BLOB_ACCOUNT_NAME=${AZURE_BLOB_ACCOUNT_NAME} \
AZURE_BLOB_ACCOUNT_KEY=${AZURE_BLOB_ACCOUNT_KEY} \
AZURE_BLOB_SAS_TOKEN=${AZURE_BLOB_SAS_TOKEN} \
AZURE_BLOB_CONNECTION_STRING=${AZURE_BLOB_CONNECTION_STRING}
RUN pip3 install pipenv==2018.5.18 pip==18.0
WORKDIR /build
COPY Pipfile .
COPY Pipfile.lock .
RUN pipenv install --system --deploy --ignore-pipfile --dev
WORKDIR /app