diff --git a/backend/Dockerfile b/backend/Dockerfile index 501a9f9..a6031f8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,6 +7,14 @@ ENV PYTHONUNBUFFERED=1 # Set work directory WORKDIR /app +RUN rm -f /etc/apt/sources.list.d/debian.sources && \ + printf '%s\n' \ + 'deb http://mirror-linux.runflare.com/debian trixie main' \ + 'deb http://mirror-linux.runflare.com/debian-security trixie-security main' \ + > /etc/apt/sources.list && \ + echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid + + # Install system dependencies RUN apt-get update \ && apt-get install -y --no-install-recommends \ @@ -17,7 +25,7 @@ RUN apt-get update \ # Install Python dependencies COPY requirements.txt /app/ -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt -i https://package-mirror.liara.ir/repository/pypi/simple # Copy project COPY . /app/ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 60ce343..05653fc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,6 +2,8 @@ FROM node:20-alpine AS builder WORKDIR /app +RUN npm config set registry https://package-mirror.liara.ir/repository/npm/ --global + # Accept build argument for API base URL ARG NEXT_PUBLIC_API_BASE ENV NEXT_PUBLIC_API_BASE=${NEXT_PUBLIC_API_BASE}