-
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 installation of formatting and linting tools to Dockerfile (#25)
* Move Poetry and npm installs to Dockerfile rather than dev startup script * Update deps for dev and don't use the cache directory * Use nvm during build process * Use source to load nvm * Update nvm path * Ignore SC1091 for shellcheck on Dockerfile * Update CHANGELOG.md
- Loading branch information
Showing
4 changed files
with
13 additions
and
5 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
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
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,12 @@ 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 --no-cache-dir --quiet black==24.10.0 flake8==7.1.1 isort==5.13.2; \ | ||
. "$HOME/.nvm/nvm.sh"; \ | ||
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 | ||
|