Dan 3364619267 Removing deploy step from Travis, as we are moving to Quay.io
for this process.
Dropping the deloy.sh as it is no longer in use.
Updating the docker file to remove denendency on cr-connect-python-base
2021-02-11 16:07:28 -05:00

25 lines
592 B
Docker

FROM python:3.8
RUN pip install pipenv
RUN useradd _gunicorn --no-create-home --user-group
RUN apt-get update && \
apt-get install -y -q \
gcc libssl-dev \
curl postgresql-client git-core \
gunicorn3 postgresql-client
WORKDIR /app
COPY Pipfile Pipfile.lock /app/
RUN cd /app && pipenv lock --keep-outdated --requirements > requirements.txt
RUN pip install -r /app/requirements.txt
RUN set -xe \
&& apt-get remove -y gcc python3-dev libssl-dev \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
COPY . /app/
WORKDIR /app