-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
49 lines (45 loc) · 1.14 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
FROM alpine/git
COPY . /data
WORKDIR /data
RUN rm -rf themes/*
RUN git clone https://github.com/felicianotech/hugo-theme-lean-launch-page.git themes/hugo-theme-lean-launch-page
##
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 <mcfatem@grinnell.edu>
#COPY ./conf/default.conf /etc/nginx/conf.d/default.conf
#COPY --from=2 /data/public /var/www/site
#WORKDIR /var/www/site