Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMATSUKI Hidenori <mazgi@users.noreply.github.com>2019-08-16 18:25:54 +0300
committerGitHub <noreply@github.com>2019-08-16 18:25:54 +0300
commit1db0325d35b874ffc457b959f41b8de15a74d397 (patch)
tree24c6d132072a3822db7b76a21003acd449eac631
parentc657b9cb6f87789351704c7a86a44b084be2fc5c (diff)
parent151efebfe84b3a82c7fbaaea6d4e4785e4638651 (diff)
Merge pull request #6 from mazgi/improve-docker-image
Improve Dockerfile
-rw-r--r--exampleSite/Dockerfile21
1 files changed, 12 insertions, 9 deletions
diff --git a/exampleSite/Dockerfile b/exampleSite/Dockerfile
index 91d2e3d..099c669 100644
--- a/exampleSite/Dockerfile
+++ b/exampleSite/Dockerfile
@@ -1,14 +1,17 @@
FROM ubuntu:18.04@sha256:de774a3145f7ca4f0bd144c7d4ffb2931e06634f11529653b23eba85aef8e378
-MAINTAINER "Hidenori MATSUKI <matsuki.hidenori+docker@gmail.com>"
+LABEL maintainer="docker@mazgi.com"
ENV DOCKERBUILD_HUGO_VERSION="0.57.0"
ENV DEBIAN_FRONTEND="noninteractive"
-RUN : 'Install packages' \
- && apt update \
- && apt install -y --no-install-recommends ca-certificates openssh-client curl git \
- && : 'Download and install Hugo' \
- && curl -LO "https://github.com/gohugoio/hugo/releases/download/v${DOCKERBUILD_HUGO_VERSION}/hugo_${DOCKERBUILD_HUGO_VERSION}_Linux-64bit.deb" \
- && dpkg -i hugo_${DOCKERBUILD_HUGO_VERSION}_Linux-64bit.deb \
- && : 'Clean up' \
- && apt clean
+RUN apt-get update \
+ # Install packages
+ && apt-get install -y --no-install-recommends apt-utils \
+ && apt-get install -y --no-install-recommends ca-certificates openssh-client curl git \
+ # Download and install Hugo
+ && curl -LO "https://github.com/gohugoio/hugo/releases/download/v${DOCKERBUILD_HUGO_VERSION}/hugo_${DOCKERBUILD_HUGO_VERSION}_Linux-64bit.deb" \
+ && dpkg -i hugo_${DOCKERBUILD_HUGO_VERSION}_Linux-64bit.deb \
+ # Clean up
+ && apt-get autoremove -y \
+ && apt-get clean -y \
+ && rm -rf /var/lib/apt/lists/*