hugo, refactor Dockerfile and remove unneeded packages.
This commit is contained in:
1 parent
a0b1448fa3
commit
9e019605ea
1 file changed
+5
-2
@@ -12,11 +12,14 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
# System Dependencies
|
# System Dependencies
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
git nginx cron curl bash sudo htop golang gcc && \
|
git nginx cron curl bash sudo \
|
||||||
|
golang gcc && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Hugo
|
# Compile Hugo
|
||||||
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
|
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
|
||||||
|
|
||||||
|
# Install Hugo
|
||||||
RUN ln -s $HOME/go/bin/hugo /usr/local/bin/hugo
|
RUN ln -s $HOME/go/bin/hugo /usr/local/bin/hugo
|
||||||
|
|
||||||
# User and Group
|
# User and Group
|
||||||
|
|||||||
Reference in new issue
Block a user