diff options
author | Roman <59285587+codeandmedia@users.noreply.github.com> | 2020-06-27 23:00:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 23:00:00 +0300 |
commit | e0db9aff96975fe3d1b267f9a16351336e9aeefd (patch) | |
tree | 0e2c4ec61e9476c1b0749a4382ac10388cad319b | |
parent | f955d4c060d13917b7a32945fb6e784793e0bed8 (diff) |
Update Dockerfile
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,8 +1,8 @@ FROM ubuntu:latest AS ZOLA COPY . /site WORKDIR /site -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 +ADD https://github.com/getzola/zola/releases/download/v0.11.0/zola-v0.11.0-x86_64-unknown-linux-gnu.tar.gz /tmp +RUN tar -C /usr/bin -xvzf /tmp/zola-v0.11.0-x86_64-unknown-linux-gnu.tar.gz && zola build FROM nginx:stable-alpine -RUN rm /usr/share/nginx/html/index.html COPY --from=ZOLA /site/public/ /usr/share/nginx/html/ -EXPOSE 80
\ No newline at end of file +EXPOSE 80 |