diff --git a/Dockerfile.backend b/Dockerfile.backend index 85ee4b83..d0143a3d 100644 --- a/Dockerfile.backend +++ b/Dockerfile.backend @@ -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} diff --git a/docker-compose.yml b/docker-compose.yml index dbb147b7..381c6671 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: