Use pip-tools for dependency management
This commit is contained in:
parent
7132fb743c
commit
13c355bf0a
9 changed files with 196 additions and 29 deletions
|
@ -25,8 +25,8 @@ EXPOSE 8000
|
|||
USER website
|
||||
|
||||
RUN python -m venv $VIRTUAL_ENV
|
||||
COPY --chown=website requirements.txt ./
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
COPY --chown=website requirements/base.txt ./requirements/base.txt
|
||||
RUN pip install --upgrade pip && pip install -r ./requirements/base.txt
|
||||
|
||||
COPY --chown=website --from=frontend ./static/build ./static/build
|
||||
|
||||
|
@ -50,7 +50,7 @@ RUN curl -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin
|
|||
# Restore user
|
||||
USER website
|
||||
|
||||
COPY --chown=website dev-requirements.txt ./
|
||||
RUN pip install --upgrade pip && pip install -r dev-requirements.txt
|
||||
COPY --chown=website requirements/dev.txt ./requirements/dev.txt
|
||||
RUN pip install --upgrade pip && pip install -r requirements/dev.txt
|
||||
|
||||
CMD sleep infinity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue