-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (47 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
## This is the Dockerfile from my OLD blogs-McFateM project
FROM alpine/git
COPY . /data
WORKDIR /data
RUN rm -rf themes/*
RUN git clone https://github.com/McFateM/hugo-theme-m10c.git themes/m10c
RUN git clone https://github.com/SummittDweller/hugo-search-fuse-js.git themes/hugo-search-fuse-js
##
FROM klakegg/hugo:0.55.6-ext-alpine
# FROM skyscrapers/hugo:0.48
# 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/
#
#WORKDIR /data
#RUN minify --recursive --verbose \
# --match=\.*.css$ \
# --type=css \
# --output public/ \
# public/
#
#WORKDIR /data
#RUN minify --recursive --verbose \
# --match=\.*.html$ \
# --type=html \
# --output public/ \
# public/
#
##
FROM nginx:alpine
#COPY --from=2 /data/public /usr/share/nginx/html
COPY --from=1 /data/public /usr/share/nginx/html
#LABEL maintainer Mark A. McFate <[email protected]>
#COPY ./conf/default.conf /etc/nginx/conf.d/default.conf
#COPY --from=2 /data/public /var/www/site
#WORKDIR /var/www/site