Merge pull request #4 from overspend1/claude/update-python-dependencies-01Tb7V7mEiTXHTqiM81Zgh54

Update Python dependencies and Docker base image
This commit was merged in pull request #4.
This commit is contained in:
Wiktor
2025-11-21 12:59:46 +01:00
committed by GitHub
3 changed files with 20 additions and 0 deletions

View File

@@ -6,11 +6,16 @@ WORKDIR /app
# Install system dependencies for building Python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
python3-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
# Upgrade pip and setuptools first
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Install dependencies with user flag
RUN pip install --no-cache-dir --user -r requirements.txt
# Production stage

View File

@@ -30,6 +30,9 @@ services:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_WS_URL=ws://localhost:8000
container_name: bot-dashboard-frontend
ports:
- "3000:3000"

View File

@@ -16,6 +16,14 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV production
# Accept build arguments for API URLs
ARG NEXT_PUBLIC_API_URL=http://localhost:8000
ARG NEXT_PUBLIC_WS_URL=ws://localhost:8000
# Set environment variables for Next.js build
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_WS_URL=$NEXT_PUBLIC_WS_URL
# Build the application
RUN npm run build
@@ -46,4 +54,8 @@ EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
# Runtime environment variables (can be overridden by docker-compose)
ENV NEXT_PUBLIC_API_URL=http://localhost:8000
ENV NEXT_PUBLIC_WS_URL=ws://localhost:8000
CMD ["node", "server.js"]