diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-03-28 10:52:10 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-03-28 11:43:10 +0000 |
| commit | d64d1f2b637183faa9d8302b73dce5006881bb88 (patch) | |
| tree | a7e8519e13b9d2587ad55978cd906da9dd4c9d21 | |
| parent | finish self-hosted (diff) | |
| download | mmm-d64d1f2b637183faa9d8302b73dce5006881bb88.tar.gz mmm-d64d1f2b637183faa9d8302b73dce5006881bb88.zip | |
add dockerfile
| -rw-r--r-- | Dockerfile | 12 | ||||
| -rw-r--r-- | Tupfile | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..652a9a7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM nickblah/lua:5.3-luarocks-stretch AS build-env +RUN echo "deb http://ppa.launchpad.net/jonathonf/tup/ubuntu xenial main" >/etc/apt/sources.list.d/tup.list +RUN apt-get update +RUN apt-get install -y --allow-unauthenticated build-essential tup sassc libmarkdown2-dev +RUN luarocks install moonscript +RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu +COPY . /build +RUN cd /build && tup init && tup generate build.sh && ./build.sh + +FROM nginx:alpine +COPY --from=build-env /build/root /usr/share/nginx/html +RUN chmod 555 -R /usr/share/nginx/html @@ -1,7 +1,7 @@ include_rules !download = |> ^ DOWNLOAD %O^ curl -L https://github.com/fengari-lua/fengari-web/releases/download/@(FENGARI_VERSION)/`basename %o` > %o |> -!sassc = |> ^ SCSS %b^ sassc -mauto %f %o |> | %o.map +!sassc = |> ^ SCSS %b^ sassc -m %f %o |> | %o.map # download fengari dependencies : |> !download |> root/fengari-web.js |
