FROM ubuntu:24.04
# Force systemd-compatible cgroup setup for Podman compatibility
ENV CRUN_CGROUP_MANAGER=cgroupfs
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
    curl wget git build-essential gcc g++ make \
    python3 python3-pip python3-venv \
    ca-certificates gnupg lsb-release unzip \
    && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
    && apt-get install -y nodejs \
    && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deno.land/install.sh | sh
ENV DENO_INSTALL=/root/.deno
ENV PATH="$DENO_INSTALL/bin:$PATH"
WORKDIR /app
COPY . .
RUN npm install && chmod +x /app/start.sh
EXPOSE 8090
CMD ["/app/start.sh"]
