cr-connect-workflow/Dockerfile

23 lines
511 B
Docker
Raw Normal View History

FROM python:3.7-slim
WORKDIR /app
COPY Pipfile Pipfile.lock ./
RUN pip install pipenv && \
apt-get update && \
2020-05-20 19:04:41 +00:00
apt-get install -y --no-install-recommends \
gcc python3-dev libssl-dev postgresql-client git-core && \
pipenv install --deploy --system && \
apt-get remove -y gcc python3-dev libssl-dev && \
2020-05-20 19:04:41 +00:00
apt-get purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/ *
2020-05-20 19:17:03 +00:00
COPY . /app
2020-05-20 19:17:03 +00:00
ENV FLASK_APP=/app/crc/__init__.py
CMD ["pipenv", "run", "python", "/app/run.py"]
# expose ports
EXPOSE 5000