Commit a863e865 authored by Simon Cornet's avatar Simon Cornet
Browse files

[docker] feat: optimize the image

parent 18c39b76
Loading
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -5,18 +5,9 @@ COPY . /src

# clone template
RUN set -e \
      && git clone https://github.com/gesquive/slate /src/themes/slate

# generate site
RUN set -e \
      && /usr/local/bin/hugo --source=/src/

# copy public content
RUN set -e \
      && cp -r /src/public /site/

# cleanup
RUN set -e \ 
      && git clone https://github.com/gesquive/slate /src/themes/slate \
      && /usr/local/bin/hugo --source=/src/ \
      && cp -r /src/public /site/ \
      && rm -rf /src

# expose 80