2020-01-08 15:57:00 -05:00
|
|
|
FROM python:3.7
|
|
|
|
|
|
|
|
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
|
2020-03-25 10:00:07 -04:00
|
|
|
RUN apt-get -y install postgresql-client libpcre3 libpcre3-dev
|
2020-01-08 15:57:00 -05:00
|
|
|
|
|
|
|
# config project dir
|
|
|
|
RUN mkdir /protocol-builder-mock
|
|
|
|
WORKDIR /protocol-builder-mock
|
|
|
|
|
|
|
|
# install python requirements
|
|
|
|
RUN pip install pipenv
|
|
|
|
ADD Pipfile /protocol-builder-mock/
|
|
|
|
ADD Pipfile.lock /protocol-builder-mock/
|
|
|
|
RUN pipenv install --dev
|
|
|
|
|
|
|
|
# include rejoiner code (gets overriden by local changes)
|
|
|
|
COPY . /protocol-builder-mock/
|
|
|
|
|
2020-04-02 08:58:29 -04:00
|
|
|
ENV FLASK_APP=/protocol-builder-mock/app.py
|
|
|
|
|
2020-01-08 15:57:00 -05:00
|
|
|
# run webserver by default
|
2020-04-02 08:59:23 -04:00
|
|
|
CMD ["pipenv", "run", "python", "/protocol-builder-mock/run.py"]
|
2020-01-08 15:57:00 -05:00
|
|
|
|
|
|
|
# expose ports
|
2020-04-15 13:49:57 -04:00
|
|
|
EXPOSE 5001
|
2020-01-08 15:57:00 -05:00
|
|
|
|
|
|
|
|