Rewritten back to Lua.

Using more beautiful classes.

Add Arabic (lol idk why).
This commit is contained in:
Er2 2022-08-10 12:51:49 +03:00
parent 5a54bc1032
commit ed6598b145
41 changed files with 762 additions and 505 deletions

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM alpine AS build
RUN apk add luarocks5.1 libressl-dev gcc musl-dev lua5.1-dev \
&& luarocks-5.1 install luasec \
&& mkdir -p /dist/usr/local \
&& mkdir -p /dist/usr/local/lib/lua && cp -rpv /usr/local/lib/lua/* /dist/usr/local/lib/lua \
&& mkdir -p /dist/usr/local/share/lua && cp -rpv /usr/local/share/lua/* /dist/usr/local/share/lua
COPY run.sh /dist
COPY . /dist/app
FROM alpine
VOLUME ["/app"]
RUN apk add libressl luajit \
&& ln -sf $(which luajit) /usr/bin/lua \
&& adduser -D -h /app user
COPY --from=build /dist /
ENTRYPOINT ["/run.sh"]