dockerfile fix
This commit is contained in:
parent
811eda94c7
commit
4bd5bb4484
1 changed files with 16 additions and 5 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -1,27 +1,38 @@
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
# Prevent interactive prompts
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
build-essential \
|
build-essential \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
ca-certificates \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Luvit
|
# Install Luvit
|
||||||
RUN curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh
|
WORKDIR /tmp
|
||||||
RUN mv luvi /usr/local/bin/
|
RUN curl -L https://github.com/luvit/lit/raw/master/get-lit.sh -o get-lit.sh && \
|
||||||
RUN mv luvit /usr/local/bin/
|
chmod +x get-lit.sh && \
|
||||||
RUN mv lit /usr/local/bin/
|
./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
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy project files
|
# Copy everything
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install Lua dependencies
|
# Install Lua dependencies
|
||||||
RUN lit install
|
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
|
# Start the bot
|
||||||
CMD ["luvit", "bot.lua"]
|
CMD ["luvit", "bot.lua"]
|
||||||
Loading…
Reference in a new issue