|
|
|
FROM ubuntu:20.04 AS builder |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
xvfb \ |
|
wine \ |
|
wget \ |
|
unzip \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
COPY build/ ./ |
|
|
|
|
|
RUN chmod +x ./YourUnityServer.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"] |
|
|