Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
serverless/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (29 sloc)
833 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6.6 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y \ | |
groff \ | |
nodejs \ | |
postgresql \ | |
libpq-dev | |
RUN mkdir /root/.aws | |
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python | |
RUN pip install \ | |
awscli \ | |
pep8 \ | |
pipenv \ | |
pytest \ | |
pytest-cov \ | |
pytest-mock \ | |
pytest-watch \ | |
boto3 | |
ARG SERVERLESS_VERSION | |
RUN npm install -g \ | |
serverless@${SERVERLESS_VERSION} | |
ARG YARN_VERSION | |
RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION} | |
RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc | |
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc | |
# assuming that your serverless python libs live here | |
RUN echo "export PYTHONPATH=/code/serverless/lib" >> /root/.bashrc | |
RUN mkdir /code | |
WORKDIR /code |