From 2f2bc7181cd1a46de3d44aa9704c314c005542f4 Mon Sep 17 00:00:00 2001 From: Tangent Date: Sun, 13 Sep 2026 16:57:06 -0600 Subject: [PATCH] this Dockerfile should work --- Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..82bc795 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,35 @@ +# TODO This should be in its own place to reference for all projects, +# built pre-project + +FROM openresty/openresty:1.31.1.1-bookworm + +LABEL maintainer = "Tangent/Rose " +ENV RUN_ENV=development + +RUN mkdir /app +VOLUME /app + +EXPOSE 8080 +WORKDIR /app +ENTRYPOINT ["sh", "-c", "sleep 5 && lapis migrate $RUN_ENV && lapis serve $RUN_ENV"] + +RUN apt-get update +RUN apt-get upgrade -y +RUN apt-get install libssl-dev git -y # OpenSSL header dependency + +RUN luarocks install lapis +RUN luarocks install luacrypto # legacy requirement (lapis) +RUN luarocks install bcrypt +RUN luarocks install lapis-console +RUN luarocks install lua-cjson +# RUN luarocks install markdown # legacy requirement; probably discardable + +# clean up +RUN apt-get autoremove -y +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# legacy +# actually build stuff! +# RUN luarocks install moonscript +# COPY . . +# RUN moonc .