Embrace poetry
pip-tools doesn't work well on renovate, and also makes some things annoying. Poetry has been a pain in the past, but let's see if intense usage will win me over.
This commit is contained in:
parent
ce5ab07ced
commit
72642d948f
10 changed files with 2289 additions and 282 deletions
|
@ -25,6 +25,8 @@ RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-r
|
|||
|
||||
RUN curl -fsSL https://github.com/aptible/supercronic/releases/download/v0.2.1/supercronic-linux-amd64 -o /usr/local/bin/supercronic && chmod +x /usr/local/bin/supercronic
|
||||
|
||||
RUN pip install --no-cache poetry==1.2.0
|
||||
|
||||
ENV PATH=$VIRTUAL_ENV/bin:$PATH \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
|
@ -33,8 +35,8 @@ EXPOSE 8000
|
|||
USER website
|
||||
|
||||
RUN python -m venv $VIRTUAL_ENV
|
||||
COPY --chown=website requirements/base.txt ./requirements/base.txt
|
||||
RUN pip install --no-cache --upgrade pip && pip install --no-cache -r ./requirements/base.txt
|
||||
COPY --chown=website pyproject.toml poetry.lock ./
|
||||
RUN poetry install --without=dev --no-cache
|
||||
|
||||
COPY --chown=website --from=frontend ./static/build ./static/build
|
||||
|
||||
|
@ -58,7 +60,6 @@ RUN curl -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin
|
|||
# Restore user
|
||||
USER website
|
||||
|
||||
COPY --chown=website requirements/dev.txt ./requirements/dev.txt
|
||||
RUN pip install -r requirements/dev.txt
|
||||
RUN poetry install --no-cache
|
||||
|
||||
CMD sleep infinity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue