Dockerfile

changeset 13
763288302cf0
parent 9
e5f706093df7
equal deleted inserted replaced
12:dfa7cb60647e 13:763288302cf0
1 #################################### 1 ####################################
2 FROM debian:bullseye-slim as build 2 FROM debian:bookworm-slim as build
3 3
4 MAINTAINER Matthew Wild <mwild1@gmail.com> 4 MAINTAINER Matthew Wild <mwild1@gmail.com>
5 5
6 RUN apt-get update \ 6 RUN apt-get update \
7 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ 7 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
14 build-essential \ 14 build-essential \
15 && rm -rf /var/lib/apt/lists/* 15 && rm -rf /var/lib/apt/lists/*
16 16
17 WORKDIR /tmp/build 17 WORKDIR /tmp/build
18 18
19 ADD https://hg.prosody.im/trunk/archive/85d51bfcf56b.tar.gz ./prosody.tar.gz 19 ADD https://hg.prosody.im/trunk/archive/59478b295137.tar.gz ./prosody.tar.gz
20 20
21 RUN tar --strip-components=1 -xzf prosody.tar.gz \ 21 RUN tar --strip-components=1 -xzf prosody.tar.gz \
22 && ./configure && make 22 && ./configure && make
23 23
24 ADD src/web/ util/ 24 ADD src/web/ util/
27 27
28 RUN tar -xzf luaunbound-1.0.0.tar.gz \ 28 RUN tar -xzf luaunbound-1.0.0.tar.gz \
29 && make -C luaunbound-1.0.0 29 && make -C luaunbound-1.0.0
30 30
31 ############################ 31 ############################
32 FROM debian:bullseye-slim 32 FROM debian:bookworm-slim
33 33
34 RUN apt-get update \ 34 RUN apt-get update \
35 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ 35 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
36 tini \ 36 tini \
37 lua5.2 \ 37 lua5.2 \
38 lua-cjson \ 38 lua-cjson \
39 lua-expat \ 39 lua-expat \
40 lua-filesystem \ 40 lua-filesystem \
41 lua-geoip \
41 lua-sec \ 42 lua-sec \
42 lua-socket \ 43 lua-socket \
43 libidn11 \ 44 libidn12 \
44 libicu67 \ 45 libicu72 \
45 lua-dbi-postgresql \ 46 lua-dbi-postgresql \
46 libunbound8 \ 47 libunbound8 \
48 ca-certificates \
49 geoip-database \
47 && rm -rf /var/lib/apt/lists/* 50 && rm -rf /var/lib/apt/lists/*
48 51
49 COPY --from=build /tmp/build/util /usr/local/lib/lua-web-app/util 52 COPY --from=build /tmp/build/util /usr/local/lib/lua-web-app/util
50 COPY --from=build /tmp/build/net /usr/local/lib/lua-web-app/net 53 COPY --from=build /tmp/build/net /usr/local/lib/lua-web-app/net
51 COPY --from=build /tmp/build/luaunbound-1.0.0/lunbound.so /usr/local/lib/lua/5.2/lunbound.so 54 COPY --from=build /tmp/build/luaunbound-1.0.0/lunbound.so /usr/local/lib/lua/5.2/lunbound.so

mercurial