From d18e99ee4c4bc08ef668f604705e8e7518734858 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 26 May 2025 09:39:59 +0300 Subject: [PATCH] depfix-dockernode --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index dd41fae3..97356dd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,14 @@ RUN apt-get update && apt-get install -y \ postgresql-client \ curl \ build-essential \ + gnupg \ + ca-certificates \ && rm -rf /var/lib/apt/lists/* +# Установка Node.js LTS и npm +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ + apt-get install -y nodejs + WORKDIR /app COPY requirements.txt . @@ -14,6 +20,10 @@ RUN pip install -r requirements.txt COPY . . +# Установка зависимостей и сборка фронта (если есть package.json) +COPY package.json package-lock.json ./ +RUN npm ci && npm run build + EXPOSE 8000 CMD ["python", "-m", "granian", "main:app", "--interface", "asgi", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file