|
FROM ubuntu:bionic |
|
MAINTAINER Edgegap <[email protected]> |
|
|
|
ARG DEBIAN_FRONTEND=noninteractive |
|
ARG DOCKER_VERSION=17.06.0-ce |
|
|
|
RUN apt-get update && \ |
|
apt-get install -y libglu1 xvfb libxcursor1 ca-certificates && \ |
|
apt-get clean && \ |
|
update-ca-certificates |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
COPY build/ ./ |
|
|
|
|
|
RUN chmod +x ./server.x86_64 |
|
|
|
|
|
FROM nginx:alpine AS webserver |
|
|
|
|
|
COPY static-site/ /usr/share/nginx/html |
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf |
|
|
|
|
|
FROM ubuntu:20.04 |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
xvfb \ |
|
supervisor \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
COPY --from=builder /app /app |
|
|
|
|
|
COPY --from=webserver /usr/share/nginx/html /usr/share/nginx/html |
|
COPY --from=webserver /etc/nginx/nginx.conf /etc/nginx/nginx.conf |
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
|
|
|
|
|
EXPOSE 7860 7777 |
|
|
|
|
|
CMD ["/usr/bin/supervisord"] |
|
|