diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-03-06 15:13:48 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-03-06 15:13:48 +0000 |
| commit | dcf14ccfa1648cc375912b6da33a220033f3d63a (patch) | |
| tree | 693e7c523801ef563e176c40962eb485bd685ace /Dockerfile | |
| parent | basic caching for fileder tree and conversion results (diff) | |
| download | mmm-dcf14ccfa1648cc375912b6da33a220033f3d63a.tar.gz mmm-dcf14ccfa1648cc375912b6da33a220033f3d63a.zip | |
drop Tup dependency
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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"] |
