Proper support for Poetry's dev dependencies.
This commit is contained in:
parent
4552b817f5
commit
6fbcad7088
2 changed files with 7 additions and 3 deletions
|
@ -11,7 +11,7 @@ WORKDIR /service
|
|||
COPY pyproject.toml .
|
||||
COPY poetry.lock .
|
||||
RUN pip install 'poetry==1.2.2'
|
||||
RUN poetry config virtualenvs.create false && poetry install
|
||||
RUN poetry config virtualenvs.create false
|
||||
|
||||
RUN mkdir /images
|
||||
|
||||
|
@ -26,6 +26,8 @@ CMD [ "bootstrap/init.sh" ]
|
|||
# Release container
|
||||
FROM base AS release
|
||||
|
||||
RUN poetry install --without dev
|
||||
|
||||
COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
||||
|
||||
|
||||
|
@ -33,6 +35,8 @@ COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
|||
# Dev container
|
||||
FROM release AS dev
|
||||
|
||||
RUN poetry install --with dev
|
||||
|
||||
# Install our tweaked sqlalchemy-easy-profile
|
||||
COPY thirdparty/sqlalchemy-easy-profile sqlalchemy-easy-profile
|
||||
RUN cd sqlalchemy-easy-profile && python3 setup.py install
|
||||
|
@ -42,7 +46,7 @@ COPY bootstrap/supervisord.conf.dev /etc/supervisord.conf
|
|||
|
||||
###################################################################
|
||||
# Utility container for running commands (tests, most notably)
|
||||
FROM release AS operation
|
||||
FROM dev AS operation
|
||||
|
||||
# don't run the server itself, just start up the environment and assume we'll exec things from the outside
|
||||
CMD sleep infinity
|
||||
|
|
|
@ -39,9 +39,9 @@ yattag = "*"
|
|||
webptools = "*"
|
||||
supervisor = "*"
|
||||
superlance = "*"
|
||||
pytest = "*"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = "*"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue