FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-http-client/Dockerfile at main · sendgrid/python-http-client · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
sendgrid
/
python-http-client
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
126
Code
Issues
2
Pull requests
3
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-http-client
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (34 loc) · 1.31 KB
Breadcrumbs
python-http-client
/
Dockerfile
Copy path
File metadata and controls
40 lines (34 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
FROM
ubuntu:xenial
ENV
PYTHON_VERSIONS=
'python2.7 python3.4 python3.5 python3.6 python3.7'
\
OAI_SPEC_URL=
"https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/oai_stoplight.json"
#
install testing versions of python, including old versions, from deadsnakes
RUN
set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common \
&& apt-add-repository -y ppa:fkrull/deadsnakes \
&& apt-get update \
&& apt-get install -y --no-install-recommends $PYTHON_VERSIONS \
git \
curl \
&& apt-get purge -y --auto-remove software-properties-common \
&& rm -rf /var/lib/apt/lists/*
WORKDIR
/root
#
install Prism
ADD
https://raw.githubusercontent.com/stoplightio/prism/HEAD/install.sh install.sh
RUN
chmod +x ./install.sh && \
./install.sh && \
rm ./install.sh
#
install pip, tox
ADD
https://bootstrap.pypa.io/get-pip.py get-pip.py
RUN
python2.7 get-pip.py && \
pip install tox && \
rm get-pip.py
#
set up default Twilio SendGrid env
WORKDIR
/root/sources
RUN
git clone https://github.com/sendgrid/sendgrid-python.git && \
git clone https://github.com/sendgrid/python-http-client.git
WORKDIR
/root
RUN
ln -s /root/sources/sendgrid-python/sendgrid && \
ln -s /root/sources/python-http-client/python_http_client
COPY
. .
CMD
sh run.sh
Back
|
FazBrowse Home
|
New Git URL