Merge pull request 'Add Dockerfile and documentation' (#1) from Dockerfile into main
continuous-integration/drone/push Build is passing Details

This commit is contained in:
luca 2020-11-05 20:06:48 +01:00
commit 0aaa190769
2 changed files with 13 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:3.12
RUN apk add --no-cache hugo
WORKDIR /var/www/html
VOLUME /var/www/html
EXPOSE 1313
ENTRYPOINT ["hugo", "serve", "--bind", "0.0.0.0", "--watch"]

4
README.md Normal file
View File

@ -0,0 +1,4 @@
## Docker for local development and testing
1. Build Docker image: `docker build -t hugo .`
2. Run container: `docker run --rm -v $PWD:/var/www/html -p 8080:1313 hugo`