FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-lambda/python3.6/build/Dockerfile at add-lambda-api · sysdevguru/docker-lambda · GitHub
sysdevguru
/
docker-lambda
Public
forked from
lambci/docker-lambda
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-lambda
/
python3.6
/
build
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 1021 Bytes
Breadcrumbs
docker-lambda
/
python3.6
/
build
/
Dockerfile
Copy path
File metadata and controls
22 lines (19 loc) · 1021 Bytes
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
FROM
lambci/lambda-base:build
ENV
PATH=/var/lang/bin:$PATH \
LD_LIBRARY_PATH=/var/lang/lib:$LD_LIBRARY_PATH \
AWS_EXECUTION_ENV=AWS_Lambda_python3.6 \
PYTHONPATH=/var/runtime \
PKG_CONFIG_PATH=/var/lang/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
RUN
rm -rf /var/runtime /var/lang && \
curl https://lambci.s3.amazonaws.com/fs/python3.6.tgz | tar -xz -C / && \
sed -i
'/^prefix=/c
\p
refix=/var/lang'
/var/lang/lib/pkgconfig/python-3.6.pc && \
curl https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz | tar -xJ && \
cd Python-3.6.9 && \
LIBS=
"$LIBS -lutil -lrt"
./configure --prefix=/var/lang && \
make -j$(getconf _NPROCESSORS_ONLN) libinstall libainstall inclinstall && \
cd .. && \
rm -rf Python-3.6.9
#
Add these as a separate layer as they get updated frequently
RUN
pip install -U pip setuptools --no-cache-dir && \
pip install -U virtualenv pipenv --no-cache-dir && \
pip install -U awscli boto3 aws-sam-cli==0.31.1 aws-lambda-builders==0.5.0 --no-cache-dir
Back
|
FazBrowse Home
|
New Git URL