Skip to content

Commit

Permalink
Use templating with Dockerfile in order to have less rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jul 19, 2022
1 parent 653f179 commit 9502ce8
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 199 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ jobs:
with:
submodules: recursive

- name: First set up.
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
echo $HOME/.poetry/bin >> $GITHUB_PATH
- name: Docker image build.
run: docker build -t $IMAGE_TAG --build-arg DEBUG= Telegram/build/docker/centos_env
run: |
cd Telegram/build/docker/centos_env
poetry install
DEBUG= poetry run gen_dockerfile | docker build -t $IMAGE_TAG -
- name: Push the Docker image.
if: ${{ github.ref_name == github.event.repository.default_branch }}
Expand Down
1 change: 1 addition & 0 deletions Telegram/build/docker/centos_env/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
Loading

0 comments on commit 9502ce8

Please sign in to comment.