diff --git a/Dockerfile b/Dockerfile index 0903851..43e96be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,37 @@ WORKDIR /app COPY ./main /app/main -# Stage 2: Create the final image with Python 3 and the Go binary -# Python is needed for the group tasks +# Stage 2: Create the final image with Python 3, Go binary, and Google Chrome FROM python:3 +# NEEDED FOR SCRIPTS WHO USE google-chrome-stable: Install Google Chrome dependencies +RUN apt-get update && apt-get install -y \ + wget \ + ca-certificates \ + fonts-liberation \ + libappindicator3-1 \ + libasound2 \ + libatk-bridge2.0-0 \ + libatk1.0-0 \ + libcups2 \ + libdbus-1-3 \ + libgdk-pixbuf2.0-0 \ + libnspr4 \ + libnss3 \ + libxcomposite1 \ + libxdamage1 \ + libx11-xcb1 \ + libxtst6 \ + lsb-release \ + xdg-utils \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# NEEDED FOR SCRIPTS WHO USE google-chrome-stable: Download and install Google Chrome +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ + && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ + && apt-get update && apt-get install -y google-chrome-stable + WORKDIR /app # Copy the Go binary from the previous stage @@ -19,4 +46,7 @@ COPY ./public/swagger/ /app/swagger # Set up any Python dependencies you might need # RUN pip install ... +# NEEDED FOR SCRIPTS WHO USE google-chrome-stable: Set up the display variable +ENV DISPLAY=:99 + CMD ["./main"] \ No newline at end of file diff --git a/main b/main index 9cd6ded..67e3dc6 100755 Binary files a/main and b/main differ diff --git a/public/swagger/swagger.json b/public/swagger/swagger.json index 85d0b26..a9a0bf0 100644 --- a/public/swagger/swagger.json +++ b/public/swagger/swagger.json @@ -171,7 +171,7 @@ "tags": [ "crm" ], - "summary": "Get crm customer", + "summary": "Get crm customer by filters", "operationId": "crmGetCrmCustomer", "parameters": [ {