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