Files
infomate.club/Dockerfile
Volodymyr 'vovin' Shcherbinin 0ba301315a Add CI support (#7)
* 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'
2020-01-31 23:20:56 +01:00

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