chore: rm chromium backend image

This commit is contained in:
Rohit Rajan
2025-11-30 20:45:51 +05:30
parent 2bbf5d657f
commit 560b2e352d
2 changed files with 7 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/playwright:v1.46.0-noble
FROM --platform=$BUILDPLATFORM node:20-slim
# Set working directory
WORKDIR /app
@@ -18,31 +18,6 @@ COPY server/tsconfig.json ./server/
# Install dependencies
RUN npm install --legacy-peer-deps
# Create the Chromium data directory with necessary permissions
RUN mkdir -p /tmp/chromium-data-dir && \
chmod -R 777 /tmp/chromium-data-dir
# Install dependencies
RUN apt-get update && apt-get install -y \
libgbm1 \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libdrm2 \
libxkbcommon0 \
libglib2.0-0 \
libdbus-1-3 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxi6 \
libxtst6 \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
# Expose backend port
EXPOSE ${BACKEND_PORT:-8080}

View File

@@ -30,9 +30,9 @@ services:
- minio_data:/data
backend:
#build:
#context: .
#dockerfile: server/Dockerfile
# build:
# context: .
# dockerfile: Dockerfile.backend
image: getmaxun/maxun-backend:latest
restart: unless-stopped
ports:
@@ -60,9 +60,9 @@ services:
- /var/run/dbus:/var/run/dbus
frontend:
#build:
#context: .
#dockerfile: Dockerfile
# build:
# context: .
# dockerfile: Dockerfile.frontend
image: getmaxun/maxun-frontend:latest
restart: unless-stopped
ports: