Skip to content

Commit

Permalink
fix flask only with dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ipince committed Sep 13, 2024
1 parent 03dfcf6 commit d4f5425
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
project_id: [dev-j3tpk] #, nonprod-j3tpk, prod-j3tpk]
template: [deno-fresh, elixir-phoenix, php-laravel]
template: [python-flask]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ runs:
if [ ! -f Dockerfile ]; then
devbox generate dockerfile --for prod
fi
cat Dockerfile
devbox version
pwd
docker build . \
--label "repository=${{ github.repository }}" \
--label "revision=${{ github.sha }}" \
Expand Down
18 changes: 0 additions & 18 deletions templates/python-flask/Dockerfile

This file was deleted.

14 changes: 2 additions & 12 deletions templates/python-flask/devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@
"packages": ["[email protected]"],
"shell": {
"init_hook": [
"echo 'in init hook'",
"echo $VENV_DIR",
"echo 'after echoing venv_dir'",
"ls -la $VENV_DIR",
"ls -la $VENV_DIR/bin",
"sed -i '1i set -x' $VENV_DIR/bin/activate",
"cat $VENV_DIR/bin/activate",
"echo 'before source'",
". $VENV_DIR/bin/activate",
"which pip",
"echo 'end of init hook'"
". $VENV_DIR/bin/activate"
],
"scripts": {
"install": ["echo 'START install'", "which pip", ". $VENV_DIR/bin/activate", "echo 'AFTER activate'", "which pip", "pip install -r requirements.txt"],
"install": "pip install -r requirements.txt",
"start": "gunicorn -w 2 -b 0.0.0.0:8080 main:app"
}
}
Expand Down

0 comments on commit d4f5425

Please sign in to comment.