Dockerfile

Mon, 01 Aug 2022 11:29:27 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 01 Aug 2022 11:29:27 +0100
changeset 0
ed346ec34e2a
permissions
-rw-r--r--

Initial commit

0
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 FROM alpine AS build
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 RUN apk add openssl3-dev zlib-dev lua5.3-dev musl-dev luarocks gcc git \
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
4 && luarocks-5.3 install luaossl \
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 && luarocks-5.3 install lua-zlib
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 FROM alpine
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9 RUN apk add libssl3 libcrypto3 zlib lua5.3 luarocks
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11 COPY --from=build /usr/local/ /usr/local/
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
13 ADD fix-ceb-nulls.lua /usr/local/bin/fix-ceb-nulls
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14 RUN chmod 750 /usr/local/bin/fix-ceb-nulls
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16 ENTRYPOINT ["/usr/local/bin/fix-ceb-nulls"]
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
17
ed346ec34e2a Initial commit
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 WORKDIR /data

mercurial