2020-01-08 15:57:00 -05:00

31 lines
655 B
Docker

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
# 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
ENV FLASK_APP=./protocol-builder-mock/__init__.py
# include rejoiner code (gets overriden by local changes)
COPY . /protocol-builder-mock/
# run webserver by default
CMD ["pipenv", "run", "python", "/protocol-builder-mock/run.py"]
# expose ports
EXPOSE 6000