dockerfile fix

This commit is contained in:
Charlie 2026-01-19 21:53:27 +13:00
parent 811eda94c7
commit 4bd5bb4484

View file

@ -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"]