aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-03-06 15:13:48 +0000
committers-ol <s+removethis@s-ol.nu>2021-03-06 15:13:48 +0000
commitdcf14ccfa1648cc375912b6da33a220033f3d63a (patch)
tree693e7c523801ef563e176c40962eb485bd685ace /Dockerfile
parentbasic caching for fileder tree and conversion results (diff)
downloadmmm-dcf14ccfa1648cc375912b6da33a220033f3d63a.tar.gz
mmm-dcf14ccfa1648cc375912b6da33a220033f3d63a.zip
drop Tup dependency
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 3c718c5..996b358 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,8 @@
FROM nickblah/lua:5.3-luarocks-stretch
-RUN echo "deb http://ppa.launchpad.net/jonathonf/tup/ubuntu xenial main" \
- >/etc/apt/sources.list.d/tup.list
RUN apt-get update && \
- apt-get install -y --allow-unauthenticated \
- build-essential m4 tup sassc \
- libmarkdown2-dev libsqlite3-dev libssl-dev
+ apt-get install -y \
+ build-essential m4 sassc libmarkdown2-dev libsqlite3-dev libssl-dev
RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu
RUN luarocks install sqlite3 && \
luarocks install moonscript && \
@@ -15,7 +12,9 @@ RUN luarocks install sqlite3 && \
COPY . /code
WORKDIR /code
-RUN tup init && tup generate build-static.sh && ./build-static.sh
+RUN mkdir -p root/static/mmm && \
+ find mmm -name '*.moon' | \
+ moon build/bundle_modules.moon 'root/static/mmm/text$lua.lua'
EXPOSE 8000
ENTRYPOINT ["moon", "build/server.moon"]