We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd2405 commit ce8836dCopy full SHA for ce8836d
Dockerfile-5.1
@@ -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.1-libs lua5.1 lua5.1-dev luarocks tini
7
+RUN ln -s /usr/sbin/lua5.1 /usr/sbin/lua
8
+RUN ln -s /usr/sbin/luac5.1 /usr/sbin/luac
9
+RUN ln -s /usr/bin/luarocks-5.1 /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