cr-connect-workflow/Dockerfile

21 lines
449 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 18:57:03 +00:00
apt-get -y install --no-install-recommends gcc python3-dev libssl-dev postgresql-client git && \
pipenv install --deploy --system && \
apt-get remove -y gcc python3-dev libssl-dev && \
apt-get autoremove -y
COPY app ./
ENV FLASK_APP=./crc/__init__.py
CMD ["pipenv", "run", "python", "./run.py"]
# expose ports
EXPOSE 5000