Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ FROM python:3.12.3-slim-bookworm

ENV POETRY_VERSION 1.8.0

# Install system dependencies
# Install system dependencies including build tools for Playwright
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*

# Install Poetry
RUN pip install "poetry==$POETRY_VERSION"

# Set work directory
Expand All @@ -18,6 +24,20 @@ RUN poetry config virtualenvs.create false
RUN poetry install

# Install Chromium and Linux libraries needed by Playwright screenshot previews.
RUN apt-get update && apt-get install -y \
libxss1 \
libgconf-2-4 \
libnss3 \
libxext6 \
libx11-6 \
libxcb1 \
libxkbcommon0 \
libxdamage1 \
libxfixes3 \
libxi6 \
libxtst6 \
&& rm -rf /var/lib/apt/lists/*

RUN playwright install --with-deps chromium

# Copy the current directory contents into the container at /app
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ services:
dockerfile: Dockerfile
ports:
- "5173:5173"
environment:
- VITE_HTTP_BACKEND_URL=http://localhost:7001
- VITE_WS_BACKEND_URL=ws://localhost:7001
11 changes: 7 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ FROM node:22-bullseye-slim
# Set the working directory in the container
WORKDIR /app

# Copy package.json and yarn.lock
COPY package.json yarn.lock /app/
# Install pnpm
RUN npm install -g pnpm

# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml /app/

# Set the environment variable to skip Puppeteer download
ENV PUPPETEER_SKIP_DOWNLOAD=true

# Install dependencies
RUN yarn install
RUN pnpm install

# Copy the current directory contents into the container at /app
COPY ./ /app/
Expand All @@ -19,4 +22,4 @@ COPY ./ /app/
EXPOSE 5173

# Command to run the application
CMD ["yarn", "dev", "--host", "0.0.0.0"]
CMD ["pnpm", "dev", "--host", "0.0.0.0"]