-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (45 loc) · 1.99 KB
/
Copy pathDockerfile
File metadata and controls
54 lines (45 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:26.04@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64 AS builder
ENV LUA_VER="5.5.0"
ENV LUA_CHECKSUM="57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d"
ENV LUAROCKS_VER="3.13.0"
ENV LUAROCKS_GPG_KEY="3FD8F43C2BB3C478"
RUN apt-get update && \
apt-get install --yes --no-install-recommends build-essential ca-certificates curl gcc git gnupg make unzip && \
rm -rf /var/lib/apt/lists/* && \
apt-get purge --auto-remove && \
apt-get clean
RUN curl -R -O -L http://www.lua.org/ftp/lua-${LUA_VER}.tar.gz && \
[ "$(sha256sum lua-${LUA_VER}.tar.gz | cut -d' ' -f1)" = "${LUA_CHECKSUM}" ] && \
tar -zxf lua-${LUA_VER}.tar.gz && \
cd lua-${LUA_VER} && \
make all install && \
cd .. && \
rm lua-${LUA_VER}.tar.gz && \
rm -rf lua-${LUA_VER}
RUN curl -R -O -L https://luarocks.org/releases/luarocks-${LUAROCKS_VER}.tar.gz && \
curl -R -O -L https://luarocks.org/releases/luarocks-${LUAROCKS_VER}.tar.gz.asc && \
gpg --keyserver keyserver.ubuntu.com --recv-keys ${LUAROCKS_GPG_KEY} && \
gpg --verify luarocks-${LUAROCKS_VER}.tar.gz.asc luarocks-${LUAROCKS_VER}.tar.gz && \
tar -zxpf luarocks-${LUAROCKS_VER}.tar.gz && \
cd luarocks-${LUAROCKS_VER} && \
./configure && make && make install && \
cd .. && \
rm luarocks-${LUAROCKS_VER}.tar.gz.asc && \
rm luarocks-${LUAROCKS_VER}.tar.gz && \
rm -rf luarocks-${LUAROCKS_VER}
RUN luarocks install busted
RUN luarocks install alt-getopt
RUN luarocks install moonscript
RUN luarocks install date
RUN luarocks install lua-tz
RUN luarocks install luatz
FROM ubuntu:26.04@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64
RUN apt-get update && \
apt-get install --yes --no-install-recommends jq tzdata && \
rm -rf /var/lib/apt/lists/* && \
apt-get purge --auto-remove && \
apt-get clean
COPY --from=builder /usr/local /usr/local
COPY . /opt/test-runner
WORKDIR /opt/test-runner
ENTRYPOINT ["/opt/test-runner/bin/run.moon"]