Skip to content

Commit eabed02

Browse files
Merge pull request #33 from DUT-Team-21TCLC-DT3/fix/error-ci-cd
fix: Error in CI/CD
2 parents 061d961 + 3b3984a commit eabed02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
service: "${{ env.SERVICE_NAME }}"
4242
region: "${{ env.REGION }}"
4343
source: "${{ env.WORK_DIR }}"
44-
flags: "--allow-unauthenticated --port 8000"
44+
flags: "--allow-unauthenticated --port 8000 --memory 2Gi --cpu 2 --quiet"
4545
env_vars: |
4646
NEO4J_URI=${{ secrets.NEO4J_URI }}
4747
NEO4J_USER=${{ secrets.NEO4J_USER }}

ai_service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ RUN pip install --no-cache-dir -r requirements.txt
66
COPY . .
77
ENV PYTHONUNBUFFERED=1
88
EXPOSE 8000
9-
CMD ["python", "-m", "app.main"]
9+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)