not able to reduce docker image size further #128
Workflow file for this run
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
--- | |
name: Statistician docker check | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/statistician-dive.yml' | |
- 'docker/**' | |
- '!docker/readme.md' | |
push: | |
paths: | |
- '.github/workflows/statistician-dive.yml' | |
- 'docker/**' | |
- '!docker/readme.md' | |
env: | |
ORG: odc | |
IMAGE: statistician | |
jobs: | |
dive: | |
runs-on: ubuntu-latest | |
name: Analyze image efficiency | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: lint | |
uses: luke142367/Docker-Lint-Action@v1.1.1 | |
with: | |
target: docker/Dockerfile | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build image | |
run: | | |
docker build -t ${ORG}/${IMAGE}:_build ./docker/ | |
- name: Dive | |
uses: yuichielectric/dive-action@0.0.3 | |
with: | |
image: ${{ env.ORG }}/${{ env.IMAGE}}:_build | |
config-file: ${{ github.workspace }}/docker/dive-ci.yml | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker image size check | |
uses: wemake-services/docker-image-size-limit@master | |
with: | |
image: ${{ env.ORG }}/${{ env.IMAGE}}:_build | |
size: "3 GiB" |