diff options
author | Roman <59285587+codeandmedia@users.noreply.github.com> | 2020-05-03 23:35:41 +0300 |
---|---|---|
committer | Roman <59285587+codeandmedia@users.noreply.github.com> | 2020-05-03 23:35:41 +0300 |
commit | 7dad373c8e90e152d87165062ca3278cb96fd819 (patch) | |
tree | 5026cae1b7d4bed5b04c8be88c9bf8ccea877c1e /Dockerfile | |
parent | 34337873519e38c663efdc984ecfb7adfde8812e (diff) |
css&ico improvments and dockerfile optimization
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,11 +1,8 @@ -FROM debian:latest AS ZOLA -RUN apt-get update && apt-get install -y wget -RUN wget -c https://github.com/getzola/zola/releases/download/v0.10.0/zola-v0.10.0-x86_64-unknown-linux-gnu.tar.gz -O - | tar -xz -RUN mv zola /usr/bin +FROM ubuntu:latest AS ZOLA COPY . /site WORKDIR /site -RUN zola build +RUN apt-get update && apt-get install wget -y && wget -c https://github.com/getzola/zola/releases/download/v0.10.1/zola-v0.10.1-x86_64-unknown-linux-gnu.tar.gz -O - | tar -xz && mv zola /usr/bin && zola build FROM nginx:stable-alpine -RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/old-index.html +RUN rm /usr/share/nginx/html/index.html COPY --from=ZOLA /site/public/ /usr/share/nginx/html/ -EXPOSE 80 +EXPOSE 80
\ No newline at end of file |