amya-pvt / Dockerfile
Pkta's picture
Update Dockerfile
12ef329 verified
FROM node:22
# Install dependencies for Puppeteer and Chromium
RUN apt-get update && apt-get install -y \
libgbm1 \
libasound2 \
libx11-xcb1 \
libnss3 \
libxss1 \
libxtst6 \
fonts-liberation \
libappindicator3-1 \
libgdk-pixbuf2.0-0 \
libnspr4 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
libpixman-1-dev \
libatk-bridge2.0-0 \
libdbus-1-3 \
lsb-release \
wget \
ca-certificates \
curl \
git \
libatk1.0-0 \
libcups2 \
libx11-dev \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies for Puppeteer
RUN apt-get update && apt-get install -y \
chromium \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables for Puppeteer
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Set working directory and copy the app files
WORKDIR /root/websc
COPY . .
# Install yarn dependencies
RUN yarn install --frozen-lockfile
RUN yarn playwright install
RUN yarn playwright create
# Expose the port for the app
EXPOSE 8080
# Start the application
CMD ["yarn", "start"]