refactor: consolidate frontend serving and add health check
Backend / Lint i formatowanie (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 4m50s
Panel / Testowy build obrazu (pull_request) Failing after 2s
Backend / Testy i kontrakt API (pull_request) Successful in 9m24s
Backend / Testowy build obrazu (pull_request) Successful in 1m38s
Backend / Lint i formatowanie (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 4m50s
Panel / Testowy build obrazu (pull_request) Failing after 2s
Backend / Testy i kontrakt API (pull_request) Successful in 9m24s
Backend / Testowy build obrazu (pull_request) Successful in 1m38s
This commit is contained in:
13 files changed
+42
-121
No files matched your search
+14
-1
@@ -1,3 +1,15 @@
|
||||
# --- Etap 1: budowa panelu ---------------------------------------------------
|
||||
FROM node:22-alpine AS frontend-build
|
||||
|
||||
WORKDIR /frontend
|
||||
|
||||
COPY frontend/package.json frontend/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
# --- Etap 2: aplikacja -------------------------------------------------------
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Zależności systemowe: opus dla głosu, ffmpeg do dekodowania audio
|
||||
@@ -15,8 +27,9 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
COPY --from=frontend-build /frontend/dist /app/static
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
# Serwis wystawia wyłącznie API i steruje botem - panel ma własny obraz.
|
||||
# Python serwuje API oraz zbudowany panel webowy.
|
||||
CMD ["python", "-u", "main.py"]
|
||||
Reference in new issue
Block a user