-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 704 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM lambci/lambda:build-python3.7
ENV VIRTUAL_ENV=venv
ENV SITE_PACKAGES=/var/task/venv/lib/python3.7/site-packages
ENV PATH $VIRTUAL_ENV/bin:$PATH
RUN python3 -m venv $VIRTUAL_ENV
RUN . $VIRTUAL_ENV/bin/activate
RUN pip install --upgrade pip
RUN pip install s3fs==0.4.0 pystan==2.18 pandas==1.0.3 numpy==1.18.2 fbprophet==0.6 --no-cache
RUN pip uninstall -y matplolib
RUN echo "site-packages size $(du -sh ${SITE_PACKAGES} | cut -f1)"
RUN rm -rf ${SITE_PACKAGES}/pystan/stan/src/*
RUN rm -rf ${SITE_PACKAGES}/pystan/stan/lib/stan_math/lib/*
RUN rm -rf ${SITE_PACKAGES}/*/test/*
RUN rm -rf ${SITE_PACKAGES}/*/tests/*
RUN echo "site-packages size after reduce $(du -sh ${SITE_PACKAGES} | cut -f1)"