-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Poetry and npm installs to Dockerfile rather than dev startup sc…
…ript
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,11 @@ ENV PATH="/home/app/.local/bin/tasks:/home/app/.local/bin/dev:$PATH" | |
# ========================================== | ||
COPY --chown=app lib/* /home/app/ | ||
|
||
# ========================================== | ||
# Install the tools required for linting and | ||
# fixing both Python and JS/CSS code | ||
# ========================================== | ||
RUN python -m pip install --quiet black==24.10.0 flake8==7.1.0 isort==5.13.2; \ | ||
npm install -g [email protected] [email protected] [email protected] [email protected] [email protected] | ||
|
||
CMD ["dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#!/bin/bash | ||
|
||
poetry install --no-root --with dev || true | ||
python -m pip install --quiet black==24.10.0 flake8==7.1.0 isort==5.13.2 | ||
|
||
cd /app || return | ||
|
||
. "$HOME/.nvm/nvm.sh" | ||
if [ -f "/app/.nvmrc" ] | ||
|
@@ -12,7 +9,7 @@ then | |
else | ||
nvm use default | ||
fi | ||
npm install -g [email protected] [email protected] [email protected] [email protected] [email protected] | ||
npm install | ||
|
||
if [ -d "/home/app/.local/bin/tasks" ] | ||
then | ||
|