Compare commits

...

3 Commits

Author SHA1 Message Date
luca 0aaa190769 Merge pull request 'Add Dockerfile and documentation' (#1) from Dockerfile into main
continuous-integration/drone/push Build is passing Details
2020-11-05 20:06:48 +01:00
Martin Müller 5bdf6869b1 Add documentation for local Docker container
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2020-11-05 19:56:59 +01:00
Martin Müller d906a31f2a Add Dockerfile for local development and testing 2020-11-05 19:53:42 +01:00
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`