booly/Dockerfile

38 lines
813 B
Text
Raw Normal View History

2026-01-19 08:40:54 +00:00
FROM ubuntu:22.04
2026-01-19 08:53:27 +00:00
# Prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
2026-01-19 08:40:54 +00:00
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
build-essential \
libssl-dev \
2026-01-19 08:53:27 +00:00
ca-certificates \
2026-01-19 08:40:54 +00:00
&& rm -rf /var/lib/apt/lists/*
# Install Luvit
2026-01-19 08:53:27 +00:00
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
2026-01-19 08:40:54 +00:00
# Set working directory
WORKDIR /app
2026-01-19 08:53:27 +00:00
# Copy everything
2026-01-19 08:40:54 +00:00
COPY . .
# Install Lua dependencies
RUN lit install
2026-01-19 08:53:27 +00:00
# Verify bot.lua exists
RUN ls -la /app/ && test -f /app/bot.lua || (echo "ERROR: bot.lua not found!" && exit 1)
2026-01-19 08:40:54 +00:00
# Start the bot
CMD ["luvit", "bot.lua"]