FROM diegosouzapw/omniroute:latest ENV OMNIROUTE_INTERNAL_PORT=8990 ENV PORT=20128 ENV HOSTNAME=0.0.0.0 ENV NODE_ENV=production ENV DATA_DIR=/app/data USER root RUN mkdir -p /app/data && chmod -R 777 /app/data # ---- nginx (serves /chat-ui/ and proxies everything else to OmniRoute) ---- RUN apt-get update && apt-get install -y --no-install-recommends nginx curl \ && rm -rf /var/lib/apt/lists/* COPY nginx.conf /etc/nginx/nginx.conf COPY chat-ui/ /app/chat-ui/ COPY entrypoint-hf.sh /app/entrypoint-hf.sh RUN chmod +x /app/entrypoint-hf.sh EXPOSE 20128 ENTRYPOINT ["/app/entrypoint-hf.sh"] CMD ["node", "server.js"]