fix(Dockerfile): WORKDIR /app + uvicorn main:app — starter riktig hovudapp
This commit is contained in:
parent
85b4105afd
commit
5916d26d1e
|
|
@ -1,11 +1,22 @@
|
||||||
FROM us-central1-docker.pkg.dev/propane-will-491900-m5/osvauco-repo/osvauco-base:latest
|
FROM us-central1-docker.pkg.dev/propane-will-491900-m5/osvauco-repo/osvauco-base:latest
|
||||||
|
|
||||||
|
# Sett rotkatalog som arbeidsmappe
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Installer avhengigheter
|
||||||
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
|
||||||
|
|
||||||
|
# Kopier alt nødvendig: hovudapp, agenter, static-filer, docs, auth
|
||||||
|
COPY main.py .
|
||||||
COPY agents/ ./agents/
|
COPY agents/ ./agents/
|
||||||
COPY static/ ./static/
|
COPY static/ ./static/
|
||||||
|
COPY auth/ ./auth/
|
||||||
|
COPY ml/ ./ml/
|
||||||
|
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
WORKDIR /app/agents/core-logic
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
|
||||||
|
# Start hovudapp — main.py i /app
|
||||||
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user