Thu, 23 Mar 2023 15:30:57 +0000
Dockerfile: Update to bullseye-slim and install lua-unbound
179
8a9bf558aead
Dockerfile: Update to bullseye-slim and install lua-unbound
Matthew Wild <mwild1@gmail.com>
parents:
141
diff
changeset
|
1 | FROM debian:bullseye-slim |
94 | 2 | |
3 | MAINTAINER Matthew Wild <mwild1@gmail.com> | |
4 | ||
5 | RUN apt-get update \ | |
6 | && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
7 | lua5.2 \ | |
8 | lua-cjson \ | |
9 | lua-expat \ | |
140
2758cfb4e26d
Dockerfile: Add luafilesystem for '-d'
Matthew Wild <mwild1@gmail.com>
parents:
94
diff
changeset
|
10 | lua-filesystem \ |
94 | 11 | lua-sec \ |
12 | lua-socket \ | |
179
8a9bf558aead
Dockerfile: Update to bullseye-slim and install lua-unbound
Matthew Wild <mwild1@gmail.com>
parents:
141
diff
changeset
|
13 | lua-unbound \ |
94 | 14 | make \ |
15 | && rm -rf /var/lib/apt/lists/* | |
16 | ||
17 | RUN ln -s /usr/bin/lua5.2 /usr/local/bin/lua | |
18 | ||
19 | RUN mkdir -p /tmp/build | |
20 | ||
21 | ADD . /tmp/build | |
22 | ||
23 | WORKDIR /tmp/build | |
24 | ||
25 | RUN ./configure && make && install build/scansion /usr/local/bin/scansion && rm -rf /tmp/build | |
26 | ||
27 | ADD verse.lua /usr/local/share/lua/5.2/verse.lua | |
28 | ||
29 | ADD misc/docker-entrypoint.sh /entrypoint.sh | |
30 | ||
31 | RUN chmod a=rx /entrypoint.sh | |
32 | ||
33 | ENTRYPOINT ["/entrypoint.sh"] | |
34 | ||
35 | USER nobody | |
36 | ||
37 | ADD scripts /scripts | |
38 | ||
39 | VOLUME ["/scripts"] | |
40 | ||
41 | WORKDIR /scripts | |
42 | ||
141
7b774278ca84
Dockerfile: Run all tests in /scripts by default
Matthew Wild <mwild1@gmail.com>
parents:
140
diff
changeset
|
43 | CMD ["-d", "/scripts"] |
94 | 44 |