fix: serve main.py with static files in Cloud Run container
This commit is contained in:
parent
c4dbc9d4da
commit
5706b69ed8
|
|
@ -9,10 +9,10 @@ WORKDIR /app
|
||||||
COPY agents/core-logic/requirements.txt .
|
COPY agents/core-logic/requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY agents/core-logic/ .
|
COPY . .
|
||||||
|
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# app.py exports `app = FastAPI(...)`
|
# main.py exports `app = FastAPI(...)`
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user