Skip to content

Commit ef07c0a

Browse files
committed
chore(build): enhance Lua installation in Dockerfile and workflow
1 parent 2d7a824 commit ef07c0a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
5050
- name: Install Lua
5151
run: |
52-
sudo apt update && sudo apt install -y lua5.4
53-
lua -v
52+
sudo apt-get update
53+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
54+
lua5.4 liblua5.4-dev pkg-config build-essential
55+
lua -v || true
5456
5557
- name: Build
5658
run: cargo build --release

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ COPY src ./src/
66
COPY data ./data/
77
COPY Cargo.toml .
88
COPY Cargo.lock .
9-
RUN apt update && apt install -y lua5.4
9+
RUN apt update && apt install -y lua5.4 liblua5.4-dev pkg-config build-essential
1010
RUN cargo build --release
1111

1212
# ---------- Stage 2: Run ----------
1313
FROM debian:13-slim
1414

1515
WORKDIR /app
16-
RUN apt update && apt install -y git lua5.4 --no-install-recommends && rm -rf /var/lib/apt/lists/*
16+
RUN apt update && apt install -y git lua5.4 liblua5.4-dev--no-install-recommends && rm -rf /var/lib/apt/lists/*
1717
COPY --from=builder /app/target/release/whois-server .
1818

1919
EXPOSE 43

0 commit comments

Comments
 (0)