* Switch to 'slim' image, add Travis CI integration * Remove trailing quote, simplify CI flow * Add missing phony targets, suppress F401/F403 'pyflakes' errors on missing file * Replace 'psycopg2' with 'psycopg2-binary', bump version to '2.8.4' * Install 'make' in docker, add build and termination option in readme * Revert 'psycopg2-binary' to 'psycopg2' * Remove extra empty line * Install missing 'gcc', 'libc-dev' and 'libpq-dev'
22 lines
418 B
Docker
22 lines
418 B
Docker
FROM python:3.7-slim-buster
|
|
|
|
ARG requirements=requirements.txt
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get dist-upgrade -y \
|
|
&& apt-get install --no-install-recommends -yq \
|
|
gcc \
|
|
libc-dev \
|
|
libpq-dev \
|
|
make \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
ADD . /app
|
|
|
|
RUN pip install --no-cache-dir -e . \
|
|
&& pip install --no-cache-dir -r $requirements
|