fix: enforce amd64 container deployment

This commit is contained in:
nyan404 committed 2026-08-25 12:25:28 +03:00
1 parent 6141033d3c
commit 468591c84c
10 files changed
+36 -5

No files matched your search

+13 -1
View File
@@ -1,4 +1,16 @@
FROM reg.nyan404.ru/cwshed-clone/belki-base:py312-d6c42c4497ce
# Production is deployed to amd64 nodes. Build dependencies from the official
# base here because the previous private tag was published arm64-only.
FROM --platform=linux/amd64 python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
WORKDIR /app
COPY requirements.txt ./requirements.txt
RUN python -m pip install --no-cache-dir --upgrade "pip==26.2.1" \
&& python -m pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY web ./web