Create Docker build image, build project with Docker

This commit is contained in:
bandesz
2016-08-16 17:51:52 +01:00
parent c684fa2b8f
commit 68c1135379
11 changed files with 205 additions and 20 deletions

25
docker/Dockerfile-build Normal file
View File

@@ -0,0 +1,25 @@
FROM python:3.4-slim
ENV PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive
RUN \
echo "Install base packages" \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
make \
git \
build-essential \
zip \
libpq-dev \
&& echo "Clean up" \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN \
echo "Install global pip packages" \
&& pip install \
virtualenv \
awscli
WORKDIR /var/project