2020-05-20 20:49:32 +00:00
|
|
|
FROM python:3.6.9-slim
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 18:33:39 +00:00
|
|
|
WORKDIR /app
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 19:57:54 +00:00
|
|
|
COPY Pipfile Pipfile.lock /app/
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 18:33:39 +00:00
|
|
|
RUN pip install pipenv && \
|
|
|
|
apt-get update && \
|
2020-05-20 19:04:41 +00:00
|
|
|
apt-get install -y --no-install-recommends \
|
2020-05-21 00:13:09 +00:00
|
|
|
gcc python3-dev libssl-dev \
|
|
|
|
curl postgresql-client git-core && \
|
2020-05-20 19:57:54 +00:00
|
|
|
pipenv install --dev && \
|
2020-05-20 18:33:39 +00:00
|
|
|
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/ *
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 19:57:54 +00:00
|
|
|
COPY . /app/
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 19:17:03 +00:00
|
|
|
ENV FLASK_APP=/app/crc/__init__.py
|
|
|
|
CMD ["pipenv", "run", "python", "/app/run.py"]
|
2019-12-31 17:13:20 +00:00
|
|
|
|
2019-11-22 14:28:07 +00:00
|
|
|
# expose ports
|
|
|
|
EXPOSE 5000
|