Skip to content

Commit

Permalink
Merge pull request #12 from pramod444/develop
Browse files Browse the repository at this point in the history
[G2P-2014]create docker-build.yml and build docker for openg2p-portal…
  • Loading branch information
shibu-narayanan authored Mar 19, 2024
2 parents 91b0a07 + ae5919f commit 378dae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
env:
NAMESPACE: ${{ secrets.docker_hub_organisation }}
SERVICE_NAME: openg2p-self-service-portal
SERVICE_NAME: openg2p-selfservice-api
steps:
- uses: actions/checkout@v3
- name: Docker build and push
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ ADD --chown=${container_user}:${container_user_group} main.py /app

RUN python3 -m venv venv \
&& . ./venv/bin/activate
RUN python3 -m pip install ./src
RUN python3 -m pip install \
git+https://github.com/openg2p/openg2p-fastapi-common.git@develop\#egg=openg2p-fastapi-common\&subdirectory=openg2p-fastapi-common \
git+https://github.com/openg2p/openg2p-fastapi-common.git@develop\#egg=openg2p-fastapi-auth\&subdirectory=openg2p-fastapi-auth \
./src

CMD python3 main.py migrate; \
python3 main.py run

0 comments on commit 378dae9

Please sign in to comment.