Skip to content

Commit

Permalink
Update Dockerfile and unit test command
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCodering committed Feb 13, 2024
1 parent ebca419 commit bca5166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
# Run unit tests in the Docker container
- name: Unit Tests
run: |
docker run -e OPENAI_ORG_ID=${{ secrets.OPENAI_ORG_ID }} -e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} -e HUGGINGFACE_API_TOKEN=${{ secrets.HUGGINGFACE_API_TOKEN }} fastapirepo pytest
docker run -e OPENAI_ORG_ID=${{ secrets.OPENAI_ORG_ID }} -e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} -e HUGGINGFACE_API_TOKEN=${{ secrets.HUGGINGFACE_API_TOKEN }} fastapirepo pytest app/test_main.py
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your application source code and script
COPY ./api /app

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
CMD ["uvicorn", "app.app.main:app", "--host", "0.0.0.0", "--port", "7860"]

0 comments on commit bca5166

Please sign in to comment.