sdh

FROM maven:3-eclipse-temurin-21-jammy
# Proje dosyalarını kopyalayın
COPY . /usr/src/app

# Çalışma dizinini ayarla
WORKDIR /usr/src/app

RUN mvn compile

# Gereken bağımlılıkları yükleyin
RUN apt-get update && apt-get install -y \
   wget \
   unzip \
   curl \
   xvfb \
   libglib2.0-0 \
   libnss3 \
   libgconf-2-4 \
   libfontconfig1 \
   libx11-xcb1 \
   libxcb1 \
   libxcomposite1 \
   libxcursor1 \
   libxdamage1 \
   libxext6 \
   libxi6 \
   libxrandr2 \
   libxtst6 \
   libappindicator3-1 \
   libasound2 \
   libatk-bridge2.0-0 \
   libatspi2.0-0 \
   libdbus-1-3 \
   libgtk-3-0

RUN wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb \
   dpkg -i /tmp/chrome.deb || apt-get -f install -y && rm /tmp/chrome.deb && \
   wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip && \
   unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
   rm /tmp/chromedriver.zip && \
   chmod +x /usr/local/bin/chromedriver

 


RUN mvn clean test