-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (45 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Created by Jugal Kishore --- 2020
#
# Minimal Docker Image with Hugo installed
#
# Base Image: ubuntu:noble
FROM ubuntu:noble
# Setting Non-Interactive Build Time Environment Variable
ARG DEBIAN_FRONTEND=noninteractive
# Setting TERM Environment Variable
ENV TERM=xterm-256color
# Setting Hugo Version Variable
ARG HUGO_VERSION=0.134.3
# Installing dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
ca-certificates \
wget
# Get & Install Hugo from its source
RUN echo "Installing Hugo..." && \
OS_ARCH="$(arch)" && \
case ${OS_ARCH} in \
"x86_64") \
ARCH="amd64" \
;; \
"aarch64") \
ARCH="arm64" \
;; \
"*") \
echo "Unsupported Architecture" \
exit 1 \
;; \
esac && \
curl -sLo hugo.deb https://github.com/gohugoio/hugo/releases/download/v"${HUGO_VERSION}"/hugo_"${HUGO_VERSION}"_Linux-"${ARCH}".deb && \
dpkg -i hugo.deb && \
rm -rf hugo.deb && \
printf "\nInstalled!\n\n" && \
hugo version
# Install ffsend
RUN curl -sL https://raw.githubusercontent.com/crazyuploader/Bash/master/install/ffsend.sh | bash -
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/*
CMD ["bash"]