|
2 | 2 | FROM registry.fedoraproject.org/fedora-minimal:latest AS build |
3 | 3 |
|
4 | 4 | # Install luarocks and ruby deps |
5 | | -RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install findutils gcc git gzip compat-lua \ |
6 | | - compat-lua-devel make ncurses-devel libevent-devel openssl openssl-devel readline-devel tar unzip automake findutils g++ zlib-devel && \ |
| 5 | +RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install findutils gcc git gzip \ |
| 6 | + make openssl openssl-devel tar unzip automake findutils g++ zlib-devel && \ |
7 | 7 | microdnf clean all |
8 | 8 |
|
9 | | -# Build luarocks |
10 | | -RUN curl -L -O https://luarocks.org/releases/luarocks-3.8.0.tar.gz && \ |
11 | | - tar zxpf luarocks-3.8.0.tar.gz && \ |
12 | | - cd luarocks-3.8.0 && \ |
13 | | - ./configure --prefix=/opt/luarocks --lua-version=5.1 --lua-suffix=-5.1 --versioned-rocks-dir && \ |
14 | | - make -j"$(nproc --all)" && \ |
15 | | - make install |
16 | | - |
17 | | -# Add luarocks to PATH and install luacheck |
18 | | -ENV PATH "$PATH:/opt/luarocks/bin" |
19 | | -RUN luarocks install ldoc |
20 | 9 |
|
21 | 10 | # Build Ruby |
22 | 11 | RUN curl -L -O https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_3_1.tar.gz && \ |
@@ -48,20 +37,16 @@ LABEL org.opencontainers.image.description "Used for building website and docs." |
48 | 37 | ENV IMAGE_NAME "naev-docs" |
49 | 38 |
|
50 | 39 | WORKDIR / |
51 | | -COPY --from=build /opt/luarocks /opt/luarocks |
52 | 40 | COPY --from=build /opt/ruby /opt/ruby |
53 | 41 |
|
54 | | -# Add luarocks to PATH |
55 | | -ENV PATH "$PATH:/opt/luarocks/bin" |
56 | | - |
57 | 42 | # Add ruby to PATH |
58 | 43 | ENV PATH "$PATH:/opt/ruby/bin" |
59 | 44 |
|
60 | 45 | # Install utilities |
61 | 46 | RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install make meson ninja-build gcc git GraphicsMagick openssl optipng zlib \ |
62 | 47 | python3-pyyaml rsync tidy tar unzip xz zip \ |
63 | | -# Install luarocks deps |
64 | | - compat-lua ncurses libevent readline \ |
| 48 | +# Install ldoc |
| 49 | + lua-ldoc \ |
65 | 50 | # Install LaTeX packages |
66 | 51 | latexmk texlive-luahbtex texlive-roboto texlive-preprint texlive-parskip texlive-sfmath \ |
67 | 52 | texlive-markdown texlive-csvsimple texlive-gobble texlive-microtype texlive-minted texlive-newunicodechar && \ |
|
0 commit comments