|
FROM ubuntu:latest |
|
|
|
WORKDIR /app |
|
ADD helper bin/linux/helper |
|
ADD exec . |
|
ADD server . |
|
ADD launch.conf . |
|
ADD config.yaml . |
|
|
|
RUN apt update \ |
|
&& apt-get install -y curl unzip wget gnupg2 |
|
|
|
|
|
RUN wget -q -O - https://dl.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 |
|
RUN google-chrome-stable --version |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN chmod +x exec \ |
|
&& chmod +x server \ |
|
&& chmod +x bin/linux/helper \ |
|
&& mkdir log && chmod 777 log \ |
|
&& mkdir tmp && chmod 777 tmp |
|
|
|
|
|
CMD ["./exec -c launch.conf"] |
|
ENTRYPOINT ["sh", "-c"] |