Skip to content

Commit

Permalink
feat: add proper entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pipech committed Nov 21, 2023
1 parent 0c17577 commit 813aabb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 813aabb

Please sign in to comment.