Reducing docker size for hugo builds
This commit is contained in:
parent
99bac4e6e1
commit
df4c0a12fa
@ -1,11 +1,6 @@
|
||||
FROM debian:sid-slim
|
||||
# Install wget -> Install hugo -> Cleanup
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates wget && \
|
||||
wget -O /tmp/hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_extended_0.119.0_linux-amd64.tar.gz && \
|
||||
tar -xzf /tmp/hugo.tar.gz && \
|
||||
mv /hugo /usr/local/bin/ && \
|
||||
apt remove -y ca-certificates wget && \
|
||||
rm -rf var/lib/{apt,dpkg,cache,log}/ /tmp/hugo*
|
||||
apt-get install -y --no-install-recommends hugo && \
|
||||
rm -rf var/lib/{apt,dpkg,cache,log}/
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user