26 lines
526 B
Docker
26 lines
526 B
Docker
FROM python:3.9.6
|
|
|
|
RUN apt-get update
|
|
RUN apt-get -y install coinor-cbc
|
|
RUN python -m pip install pulp
|
|
RUN python -m pip install pydantic
|
|
RUN python -m pip install daemonize
|
|
RUN python -m pip install sqspy
|
|
RUN python -m pip install -U pytest
|
|
RUN python -m pip install pytest-cov
|
|
RUN python -m pip install pytest-stub
|
|
RUN python -m pip install pytest-mock
|
|
RUN python -m pip install girth --upgrade
|
|
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
|
|
ENV LOCAL_DEV True
|
|
|
|
# Bundle app source
|
|
COPY . /app
|
|
|
|
WORKDIR /app/app
|
|
|
|
CMD [ "python", "main.py" ]
|