diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index 76f4417..89fd56e 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -17,7 +17,6 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python_version: [3.6] app_branch: [version-15] steps: - name: Generate action image tag @@ -45,8 +44,7 @@ jobs: load: true tags: ${{ env.IMAGE_ACTION_TAG }} build-args: | - PYTHON_VERSION=${{ matrix.python_version }} - APP_BRANCH=${{ matrix.app_branch }} + appBranch=${{ matrix.app_branch }} - name: Getting app version from image run: | diff --git a/Dockerfile b/Dockerfile index 002992b..f51941f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,12 @@ ENV \ ############################################### # MariaDB config COPY ./mariadb.cnf /home/$systemUser/mariadb.cnf +# image entrypoint +COPY --chown=1000:1000 entrypoint.sh /usr/local/bin/entrypoint.sh + +# set entrypoint permission +## prevent: docker Error response from daemon OCI runtime create failed starting container process caused "permission denied" unknown +RUN sudo chmod +x /usr/local/bin/entrypoint.sh ############################################### # Install Dependencies @@ -119,7 +125,7 @@ WORKDIR /home/$systemUser/$benchFolderName # FINALIZED ############################################### # image entrypoint script -CMD ["tail", "-f", "/dev/null"] +CMD ["/usr/local/bin/entrypoint.sh"] # expose port EXPOSE 8000 9000 3306