mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +00:00
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM ubuntu:22.04
|
|
|
|
RUN apt update && \
|
|
apt install -y make gcc libreadline-dev wget unzip git zip && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ADD https://www.lua.org/ftp/lua-5.1.5.tar.gz /tmp/lua-5.1.5.tar.gz
|
|
RUN tar -zxf /tmp/lua-5.1.5.tar.gz -C /tmp && rm /tmp/lua-5.1.5.tar.gz
|
|
RUN cd /tmp/lua-5.1.5 && \
|
|
make linux -j $(nproc) && \
|
|
make install && \
|
|
rm -r /tmp/lua-5.1.5
|
|
|
|
ADD https://luarocks.org/releases/luarocks-2.4.2.tar.gz /tmp/luarocks-2.4.2.tar.gz
|
|
RUN tar -zxpf /tmp/luarocks-2.4.2.tar.gz -C /tmp && rm /tmp/luarocks-2.4.2.tar.gz
|
|
RUN cd /tmp/luarocks-2.4.2 && \
|
|
./configure && \
|
|
make build -j $(nproc) && \
|
|
make install && \
|
|
rm -r /tmp/luarocks-2.4.2
|
|
|
|
ADD https://gitlab.com/ptmikheev/openmw-luadocumentor/-/raw/master/luarocks/openmwluadocumentor-0.1.1-1.rockspec /tmp/openmwluadocumentor-0.1.1-1.rockspec
|
|
RUN cd /tmp && \
|
|
luarocks pack openmwluadocumentor-0.1.1-1.rockspec && \
|
|
luarocks install openmwluadocumentor-0.1.1-1.src.rock && \
|
|
rm /tmp/openmwluadocumentor-0.1.1-1.rockspec /tmp/openmwluadocumentor-0.1.1-1.src.rock
|
|
|
|
VOLUME /openmw
|
|
|
|
ENV DOCS_SOURCE_DIR=/openmw/docs/source
|
|
ENV DOCUMENTOR_PATH=/usr/local/bin/openmwluadocumentor
|