google chrome inside docker
parent
581b6b2b87
commit
8b6126378d
34
Dockerfile
34
Dockerfile
|
@ -5,10 +5,37 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY ./main /app/main
|
COPY ./main /app/main
|
||||||
|
|
||||||
# Stage 2: Create the final image with Python 3 and the Go binary
|
# Stage 2: Create the final image with Python 3, Go binary, and Google Chrome
|
||||||
# Python is needed for the group tasks
|
|
||||||
FROM python:3
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the Go binary from the previous stage
|
# 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
|
# Set up any Python dependencies you might need
|
||||||
# RUN pip install ...
|
# RUN pip install ...
|
||||||
|
|
||||||
|
# NEEDED FOR SCRIPTS WHO USE google-chrome-stable: Set up the display variable
|
||||||
|
ENV DISPLAY=:99
|
||||||
|
|
||||||
CMD ["./main"]
|
CMD ["./main"]
|
|
@ -171,7 +171,7 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"crm"
|
"crm"
|
||||||
],
|
],
|
||||||
"summary": "Get crm customer",
|
"summary": "Get crm customer by filters",
|
||||||
"operationId": "crmGetCrmCustomer",
|
"operationId": "crmGetCrmCustomer",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue