-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (33 loc) · 1.01 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
#
# Copyright © 2023 Thomas Harr. All rights reserved.
# Use of this source code is governed by MIT license
# that can be found in the LICENSE file.
#
FROM alpine:latest
LABEL maintainer="Thomas Harr <xdevthomas@gmail.com>" \
url="xdevcloud.de"
RUN apk update && \
apk upgrade -a && \
apk add --no-cache \
curl \
git \
make \
gcompat \
libc6-compat \
libstdc++ \
openssh-client \
rsync && \
rm -rf /var/cache/apk/* && \
ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
ENV HUGO 0.145.0
ENV MINIFY 2.20.20
RUN mkdir -p /usr/local/src && \
cd /usr/local/src && \
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO}/hugo_extended_${HUGO}_Linux-64bit.tar.gz | tar -xz && \
mv hugo /usr/local/bin/hugo && \
curl -L https://github.com/tdewolff/minify/releases/download/v${MINIFY}/minify_linux_amd64.tar.gz | tar -xz && \
mv minify /usr/local/bin/ && \
addgroup -Sg 1000 hugo && \
adduser -SG hugo -u 1000 -h /src hugo
WORKDIR /src
EXPOSE 1313