summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorRoman <59285587+codeandmedia@users.noreply.github.com>2020-03-02 20:33:22 +0300
committerGitHub <noreply@github.com>2020-03-02 20:33:22 +0300
commitbcfd0430ef3ab53bb0931790c2b9b51a26d84f4b (patch)
tree848e74c702b4d2539cfab21616d20012bd557fef /Dockerfile
parent1d4a725aead04d50fa0c34ebdccb732e9bf76720 (diff)
Create Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d31eb59
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+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
+COPY . /site
+WORKDIR /site
+RUN zola build
+FROM nginx:stable-alpine
+RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/old-index.html
+COPY --from=ZOLA /site/public/ /usr/share/nginx/html/
+EXPOSE 80