Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dockerfile #1777

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ If you'd like to just build the docs, install ``requirements-docs.txt``::
$ pip install -r requirements-docs.txt


Also you can use Docker for local development::

$ docker build -t chalice .
$ docker run -v `PWD`:/chalice -it --rm chalice bash


Running Tests
-------------

Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.6-buster

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y libpq-dev gcc && \
apt-get clean && \
pip install --upgrade setuptools pip && \
rm -rf /var/lib/apt/lists/*

WORKDIR /chalice

COPY . .

RUN pip install -e ".[event-file-poller]" && \
pip install -r requirements-dev.txt && \
pip install -r requirements-docs.txt