-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (32 loc) · 795 Bytes
/
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
FROM alpine/git
COPY . /data
WORKDIR /data
RUN rm -rf themes/*
RUN git clone https://github.com/jhselvik/hugo-sustain-vitae.git themes/hugo-sustain-vitae
##
FROM skyscrapers/hugo:0.46
COPY --from=0 /data /data
WORKDIR /data
RUN hugo
##
FROM mysocialobservations/docker-tdewolff-minify
COPY --from=1 /data/public /data/public
WORKDIR /data
RUN minify --recursive --verbose \
--match=\.*.js$ \
--type=js \
--output public/ \
public/
RUN minify --recursive --verbose \
--match=\.*.css$ \
--type=css \
--output public/ \
public/
RUN minify --recursive --verbose \
--match=\.*.html$ \
--type=html \
--output public/ \
public/
##
FROM nginx:latest
COPY --from=2 /data/public /usr/share/nginx/html