-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (29 loc) · 833 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
30
31
32
33
34
35
36
37
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