Skip to content

Commit a4075d8

Browse files
Add Dockerfile for Lua 5.3
1 parent 85f57a0 commit a4075d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile-5.3

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM alpine:latest
2+
ARG PUID=1000
3+
ARG PGID=1000
4+
RUN addgroup -g ${PGID} -S lua && \
5+
adduser -u ${PUID} -G lua -h /home/lua -D lua
6+
RUN apk update && apk add --no-cache lua5.3-libs lua5.3 lua5.3-dev luarocks tini
7+
RUN ln -s /usr/bin/lua5.3 /usr/sbin/lua
8+
RUN ln -s /usr/bin/luac5.3 /usr/sbin/luac
9+
RUN ln -s /usr/bin/luarocks-5.3 /usr/sbin/luarocks
10+
RUN mkdir -p /app
11+
RUN chown -R ${PUID}:${PGID} /app
12+
RUN echo $'print("Hello World!!");' >> /app/main.lua
13+
VOLUME /app
14+
ENTRYPOINT ["/sbin/tini", "--"]
15+
CMD ["lua", "/app/main.lua"]

0 commit comments

Comments
 (0)