2020-04-24 18:44:55 +00:00
|
|
|
FROM alpine:latest
|
2020-04-10 23:56:57 +00:00
|
|
|
|
|
|
|
# This should be mounted with docker run command
|
|
|
|
WORKDIR /src
|
2020-04-24 18:44:55 +00:00
|
|
|
RUN cd /src
|
2020-04-10 23:56:57 +00:00
|
|
|
|
2020-04-24 18:44:55 +00:00
|
|
|
# Get hugo -- using the edge branch to get latest version
|
|
|
|
RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories
|
|
|
|
RUN apk update && apk upgrade && \
|
|
|
|
apk add --no-cache hugo=0.69.1-r0
|
2020-04-10 23:56:57 +00:00
|
|
|
|
|
|
|
# Run the development server
|
2020-04-24 18:44:55 +00:00
|
|
|
ENTRYPOINT hugo server --bind 0.0.0.0
|