# Use Ubuntu 24.04 as the base image FROM ubuntu:24.04 # Set environment variables ENV DEBIAN_FRONTEND=noninteractive \ LANG=C.UTF-8 \ PATH="/root/.bun/bin:$PATH" RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl build-essential redis unzip \ && curl -fsSL https://bun.sh/install | bash \ && bun -v \ && redis-server --daemonize yes \ && curl -fsSL https://raw.githubusercontent.com/freeflowuniverse/crystallib/development/scripts/installer.sh > /tmp/install.sh \ && bash /tmp/install.sh \ && rm -f /tmp/install.sh \ && redis-cli shutdown \ && apt-get clean \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/apt/archives/* \ && rm -rf /var/log/* \ && rm -rf /var/tmp/* \ && rm -rf /tmp/* \ && rm -rf /root/.cache/* || true # Expose application port EXPOSE 3000 CMD ["redis-server"]