Files
athens/docs/Dockerfile
Chris Mills 50876fbf79 Add Dockerfile for docs (#857)
There's no official image for hugo, so lets make our own and have the
Makefile build the Dockerfile

Add some basic documentation

I've added some simple documentation and tidied up the Dockerfile. I
move the file to use best practice and reduced the size slightly.
Personally I don't think we'll need to alter the address and not watch
files as it's only going to be used for local development atm. It might
be useful in future to move to being able to alter these if we're using
this in production

Don't use docs use hugo

It would be confusing for people to docker pull the docs but not have
any docs included in them. hugo as the name would make way more sense.

Don't lock down to digest

We should trust official libs, especially the alpine build.

Signed-off-by: Chris M <millscj01@gmail.com>
2018-11-02 12:11:11 -04:00

22 lines
654 B
Docker

FROM alpine:3.8
ENV HUGO_VERSION=0.50
ENV HUGO_BINARY=hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp
RUN tar -xf /tmp/${HUGO_BINARY} -C /tmp \
&& mv /tmp/hugo /usr/local/bin/hugo \
&& rm -rf /tmp/hugo_${HUGO_VERSION}_linux_amd64 \
&& rm -rf /tmp/${HUGO_BINARY} \
&& rm -rf /tmp/LICENSE.md \
&& rm -rf /tmp/README.md \
&& apk upgrade --update \
&& apk add --no-cache git asciidoctor libc6-compat libstdc++ ca-certificates
WORKDIR /src
CMD ["hugo", "server", "-s", "/src", "-b", "http://localhost:1313", "--bind", "0.0.0.0"]
EXPOSE 1313