2019-12-30 11:47:17 -05:00
|
|
|
FROM python:3.7
|
2019-11-22 09:28:07 -05:00
|
|
|
|
|
|
|
ENV PATH=/root/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
|
|
|
|
|
|
|
# install node and yarn
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install postgresql-client
|
|
|
|
|
|
|
|
# config project dir
|
|
|
|
RUN mkdir /crc-workflow
|
|
|
|
WORKDIR /crc-workflow
|
|
|
|
|
|
|
|
# install python requirements
|
|
|
|
RUN pip install pipenv
|
|
|
|
ADD Pipfile /crc-workflow/
|
|
|
|
ADD Pipfile.lock /crc-workflow/
|
2019-11-28 09:17:22 -05:00
|
|
|
RUN pipenv install --dev
|
2019-11-22 09:28:07 -05:00
|
|
|
|
2019-12-31 12:13:20 -05:00
|
|
|
# include rejoiner code (gets overriden by local changes)
|
|
|
|
COPY . /crc-workflow/
|
|
|
|
|
2019-11-22 09:28:07 -05:00
|
|
|
# run webserver by default
|
2020-02-06 11:18:23 -05:00
|
|
|
ENV FLASK_APP=./crc/__init__.py
|
2020-01-28 13:37:35 -05:00
|
|
|
CMD ["pipenv", "run", "python", "./run.py"]
|
2019-12-31 12:13:20 -05:00
|
|
|
|
2019-11-22 09:28:07 -05:00
|
|
|
# expose ports
|
|
|
|
EXPOSE 5000
|