Dockerfile36 lines · 745 chars FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
lua5.3 \
lua5.3-dev \
ruby-full \
git \
ca-certificates \
zlib1g-dev \
libssl-dev \
libreadline-dev \
wget; \
rm -rf /var/lib/apt/lists/*
# Create lua symlinks if needed
RUN ln -s /usr/bin/lua5.3 /usr/local/bin/lua || true; \
ln -s /usr/bin/luac5.3 /usr/local/bin/luac || true
# Set workdir and copy code
WORKDIR /workspace
COPY . /workspace
# Install Ruby dependencies (rake)
RUN gem update --system || true
RUN gem install rake
# Build the project (default target)
RUN rake -f rakefile install
CMD ["/bin/sh"]