From 4bd5bb4484ee9c9ccbaba392bcc5c6bb173c8fd7 Mon Sep 17 00:00:00 2001 From: Charlie Date: Mon, 19 Jan 2026 21:53:27 +1300 Subject: [PATCH] dockerfile fix --- Dockerfile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2943fce..75e8156 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,38 @@ FROM ubuntu:22.04 +# Prevent interactive prompts +ENV DEBIAN_FRONTEND=noninteractive + # Install dependencies RUN apt-get update && apt-get install -y \ curl \ git \ build-essential \ libssl-dev \ + ca-certificates \ && rm -rf /var/lib/apt/lists/* # Install Luvit -RUN curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh -RUN mv luvi /usr/local/bin/ -RUN mv luvit /usr/local/bin/ -RUN mv lit /usr/local/bin/ +WORKDIR /tmp +RUN curl -L https://github.com/luvit/lit/raw/master/get-lit.sh -o get-lit.sh && \ + chmod +x get-lit.sh && \ + ./get-lit.sh && \ + mv luvi /usr/local/bin/ && \ + mv luvit /usr/local/bin/ && \ + mv lit /usr/local/bin/ && \ + rm get-lit.sh # Set working directory WORKDIR /app -# Copy project files +# Copy everything COPY . . # Install Lua dependencies RUN lit install +# Verify bot.lua exists +RUN ls -la /app/ && test -f /app/bot.lua || (echo "ERROR: bot.lua not found!" && exit 1) + # Start the bot CMD ["luvit", "bot.lua"] \ No newline at end of file